+ 2
Which languages have different reading gor postfix and prefix increments
Which are the coding languages that will have different values for say ++a;
1 Odpowiedź
+ 1
int x=0;
int d=x++; //value of d is 0
//Now value of x is 1
int u=++x; //value of u is 2
d=x++ ;
means initially store the value of
x into d then increament
u=++x;
Means initially increament the value of x then store into u
☺