New course! Every coder should learn Generative AI!
Try a free lesson+ 1
suppose you have
int i = 0;
std::cout << i++; // prints 0 and then increment value of the i to 1.
//now we have i = 1.
std::cout << ++i;//increment i from 1 to 2 and print 2 as value of i.
hope it helps.