What Will Be The Values Of X And Y As A Result Of The Following Code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
What will be the values of x and y as a result of the following code?
Int x=25, y=8;
x+=y++;
Answer: The answer to the following code is x=33, y=9 and the structure to run the code are:
#include<iostream>
using namespace std;
int main ()
{
int x=25, y=8;
x+=y++;
return 0;
}
C++ is the language for the application whose base is speed and effective memory maintenance. Most of the software and game developers, robots use this language. It is considered cross-platform. Most of the excellent performance applications are developed with the use of C++.it was basically created by Bjarne Stroustrup and refers as the C language extension. One of the benefits of C++ is that it provides good control of the resources and the storage. The updates in the language happen 3 times in 2011,2014 and 2017 and refer as C++ 11, C++14, C++17. The reason to use the C++language is described in the following: