+ 1
Can someone explain this
int c=9; cout<<c++; cout<<++c; What would be the possible answer
2 Answers
+ 8
Navneet Thakur ,
i would recommend to add some additional outputs to see what happens:
int c=9;
cout<<c++<<endl;
cout<<c<<endl;
cout<<++c<<endl;
cout<<c;
âȘïžincrementing "++"or decrementing "- -" can be done before the number is used or after the number is used. incrementing is done here with a step of 1.
if you have further questions just come back and ask.
happy coding
+ 3
Try it on code playground.This type of question has been asked many times if you use the search bar you will find .