I have just typed a peace of code but I am getting weird result , so what can be the possible reason?
#include <iostream>
using namespace std;
int main()
{
int a = 5, b = 5;
cout << a++ << endl << ++a << endl;
cout << ++b << endl << b++;
return 0;
}
EXPECTED OUTPUT
5 7 6 6
OUTPUT I AM GETTING
6 7 7 5