Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

what is the difference between i++ and ++ i ?

 i = 1;
 j = ++i;
 (i is 2, j is 2)
 //diference
 i = 1;
 j = i++;
 (i is 2, j is 1)
 
PREVIOUS NEXT
Tagged: #difference
ADD COMMENT
Topic
Name
2+8 =