C++ Programming - References - Discussion
Discussion Forum : References - Programs (Q.No. 3)
3.
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;
}
Discussion:
14 comments Page 2 of 2.
Hatos said:
8 years ago
I got this output as 11 11.
Am I right?
Am I right?
(2)
Amoli said:
7 years ago
It is right to left evaluation.
Swetha said:
6 years ago
The output is :11 11.
(4)
Anusha said:
5 years ago
The output is 11 11.
(4)
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers