Which of the following statement is correct about the program given below?
#includeint main() { int x = 0; int &y = x; y = 5; while(x <= 5) { cout<< y++ << " "; x++; } cout<< x; return 0; }
Which of the following statement is correct about the program given below?
#includeint main() { int x = 10, y = 20; int *ptr = &x; int &ref = y; *ptr++; ref++; cout<< x << " " << y; return 0; }
Which of the following statement is correct about the program given below?
#includeenum bix { a=1, b, c }; int main() { int x = c; int &y = x; int &z = x; y = b; cout<< z--; return 0; }
Which of the following statement is correct about the program given below?
#includeint main() { int x = 10; int &y = x; x = 25; y = 50; cout<< x << " " << --y; return 0; }
Which of the following statement is correct about the program given below?
#includeint main() { int x = 10; int &y = x; x++; cout<< x << " " << y++; return 0; }