+ 7

Help me with Post increment and pre increment! Any links will be appreciated!

thanks

15th Jun 2017, 10:44 AM
Iwan
Iwan - avatar
7 odpowiedzi
+ 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
15th Jun 2017, 11:28 AM
Sundharam Venkat
Sundharam Venkat - avatar
+ 5
also increment
15th Jun 2017, 11:07 AM
Russel Reeder
Russel Reeder - avatar
15th Jun 2017, 11:14 AM
Russel Reeder
Russel Reeder - avatar
+ 4
all there in the words. pre (before) post (after)
15th Jun 2017, 10:49 AM
jay
jay - avatar
+ 4
well fix. (prefix/postfix) but that is niether here nor there
15th Jun 2017, 11:15 AM
jay
jay - avatar
15th Jun 2017, 12:03 PM
Nanda Balakrishnan
+ 2
https://www.sololearn.com/discuss/489143/?ref=app
25th Jun 2017, 10:06 AM
Siddharth Saraf