C Programming Tutorial 8 Pre and Post Increment

Increment operator is used to increment the current value of variable by adding integer 1.

Comments

vatsav sree says:

But in while loop sometimes we use post increment but why it acts as apre increment

Harsh Mishra says:

int a=5;

a=*1;

printf(“%dn”,a);

[a=*a;]

Is this an error?

Please give me answer!

Manandi ValliRachana says:

Int i=1;
i=i++;
Printf(“%d”,i);
Output I got is 2

Joshua C. says:

Thank you for visualizing the difference here!

sachin madishetty says:

int i=3;
i = i++;
printf(“%d”,i);
o/p :3

why

dogsRoxXD says:

Why is every programming tutorial ran by an Indian guy?

shubh says:

give some eg for running multipal inc dec oprator in one line??/ explain with output

Jayzn says:

Thank you so much, I didn’t understand it before !

 Write a comment

*

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!