I checked both by compiler that:
The output of this is 10
int count = 0;
for(int i=0; i < 10; ++i){
count=++count;
}
cout << count;
I don't get why the output of this(++count becomes count++) is 0
int count = 0;
for(int i=0; i < 10; ++i){
count=count++;
}
cout << count;