Which of the following statement is correct about the program given below? #include<iostream.h> int main() { int x = 0; int &y = x; y = 5; while(x <= 5) { cout<< y++ << " "; x++; } cout<< x; return 0; }
1.The program will print the output 5 6 7 8 9 10.
2.The program will print the output 5 6 7 8 9 10 7.
3.The program will print the output 5 7.
4.It will result in a compile time error.
Answer:3
Posted Date:-2021-02-24 09:30:50