C++ Assignment

C++ Assignment :

What is the exact output of the program below? Indicate a blank space in the output by writing blank line .

#include <iostream>

int main()

{

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;

cout << n + k << endl;

cout << n << endl;

cout << k << endl;

cout << n << k << endl;

cout << n << endl;

cout << " " << n << endl;

cout << " n" << endl;

cout << "\n" << endl;

cout << " n * n = "; //CAREFUL!

cout << n * n << endl;

cout << 'n' << endl;

return 0;

}