G
Q. What is the output of the following code snippet? int x = 5; int y = x++; cout << y;
The post-increment operator (x++) assigns the original value of x to y before incrementing x.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. Which of the following is true?
Q. What is the final value of x when the code int x; for(x=0; x<10; x++) {} is run?
Q. Which of the following means "The use of an object of one class in definition of another class"?
Q. What is the output of this program?
Q. Which of the following type of class allows only one object of it to be created?
Q. Which operator requires three operands?
Q. The operator we cannot use friend function
Q. Which of the following operator functions cannot be global?
Discusssion
Login to discuss.