Increment operator is used to increment the current value of variable by adding integer 1.
Amazon Auto Links: No products found.
Increment operator is used to increment the current value of variable by adding integer 1.
Amazon Auto Links: No products found.
Author: Telusko Learnings
But in while loop sometimes we use post increment but why it acts as apre increment
int a=5;
a=*1;
printf(“%dn”,a);
[a=*a;]
Is this an error?
Please give me answer!
Int i=1;
i=i++;
Printf(“%d”,i);
Output I got is 2
Thank you for visualizing the difference here!
int i=3;
i = i++;
printf(“%d”,i);
o/p :3
why
Why is every programming tutorial ran by an Indian guy?
give some eg for running multipal inc dec oprator in one line??/ explain with output
Thank you so much, I didn’t understand it before !