What will be the output of the following program? #include <iostream.h> enum xyz { a, b, c }; int main() { int x = a, y = b, z = c; int &p = x, &q = y, &r = z; p = z; p = ++q; q = ++p; z = ++q + p++; cout<< p << " " << q << " " << z; return 0; }
1.2 3 6
2.4 4 7
3.4 5 8
4. 3 4 6
Posted Date:-2021-02-24 09:30:50