+ 7
Help me with Post increment and pre increment! Any links will be appreciated!
thanks
7 Answers
+ 2
lets assume x=1
so in the code
printf ("%d",++x); will yeild a output of 2
but printf ("%d",x++); will yeild a output of 1
in other words ++x increments the value in the current statement itself , whereas x++ increments the value form the following statement
+ 5
also increment
+ 5
https://code.sololearn.com/WhtYOlHs8s8P/?ref=app
here, this may help
+ 4
all there in the words.
pre (before) post (after)
+ 4
well fix. (prefix/postfix) but that is niether here nor there
+ 2
refer this link.
https://code.sololearn.com/cz2V1en5lgLk
+ 2
https://www.sololearn.com/discuss/489143/?ref=app