Answers for "diffrence between a++ and ++a"

C++
0

difference between --a and a-- c++

// The difference is here:

int a = 0;
int b = a++; // b = 0, a = 1 

// Where

int a = 0;
int b = ++a; // b = 1, a = 1
Posted by: Guest on July-29-2021

Code answers related to "diffrence between a++ and ++a"

Browse Popular Code Answers by Language