state gov UP Police Programmer Grade 2 Mock Test Series Programming and Data Structure Programming in C
What is the output of following C++ language code?
main() {
int a = -1, b, c;
b = a++;
c = a;
cout << a << " " << b <<" "<< C << endl;
}
1
0 0 -1
2
-1 -1 0
3
0 -1 0
4
0 0 0