Horje
what is ++i and i++ Code Example
what is ++i and i++
int i = 10, j = 10;
  
printf ("i is %i \n", i);
printf ("i++ is %i \n", i++);
printf ("i is %i \n\n", i);
  
printf ("j is %i \n", j);
printf ("++j is %i \n", ++j);
printf ("j is %i \n", j);
what is ++i and i++
//Remember that the values are i = 10, and j = 10

i is 10 
i++ is 10     //Assigns (print out), then increments
i is 11 

j is 10 
++j is 11    //Increments, then assigns (print out)
j is 11




Cpp

Related
Time complexity Code Example Time complexity Code Example
pum game in c++ Code Example pum game in c++ Code Example
c++ loop through array Code Example c++ loop through array Code Example
makefile for single cpp file Code Example makefile for single cpp file Code Example
cout alternative c++ Code Example cout alternative c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8