Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
C++ Programming
»
References
Which of the following statement is correct about the program given below? #include<iostream.h> int main() { int x = 10; int &y = x; x++; cout<< x << " " << y++; return 0; }
The program will print the output 11 12.
The program will print the output 12 11.
The program will print the output 12 13.
It will result in a compile time error.
Show Answer
Correct Answer:
The program will print the output 12 11.
← Previous
Next →
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment