Answers for "difference between = and = in c++"

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 "difference between = and = in c++"

Browse Popular Code Answers by Language