#include <iostream>
using namespace std;
int main()
{
int x = 5, y = 5;
cout << x-- << " " << --y ;
// Outputs 5 4
return 0;
}
int main(){
int i = 0;
cout << i << endl; //Outputs 0
i++; //Now i is 0 + 1
cout << i << endl; // Outputs 1
return 0;
}
int b, a, e, d, c, f;
int num = 57;
cout << "The number is " << num << endl;
b = ++num;
a = ++num;
e = a + 1;
cout << "After post increment by 1, the number is " << b << endl;
cout << "After pre increment by 1, the number is " << a << endl;
cout << "After increasing by 1, the number is " << e << endl;
d = --e;
c = --e;
f = c - 1;
cout << "After post decrement by 1, the number is " << d << endl;
cout << "After pre decrement by 1, the number is " << c << endl;
cout << "After decreasing by 1, the number is " << f << endl;
int x = 5;
x--;
cout << x << endl;
//outputs 4