Register now or log in to join your professional community.
int n =4, k =2;
cout << ++n << endl;
cout << n << endl;
cout << n++ << endl;
cout << n << endl;
cout << -n << endl;
cout << n << endl;
cout << --n << endl;
cout << n << endl;
cout << n-- << endl;
cout << n << endl;
The program output will be
5
4
4
4
-4
4
3
4
4
4