C Program to understand pre Increment and post Increment

Spread the love
post Increment : It is unary operator, because it is operates on single operand. the increment operator (++) increments variable value by 1.

/********** Program ***********/
int n;
printf(“Enter any number : “);
printf(“Given Number : %dn”,n);
printf(“Pre Incremented Result : %dn”,++n); 
printf(“Post Incremented Result : %dn”,n++);
/********* OUTPUT **********/

Venkatesh Macha

Hi Guys, I am Venkatesh Macha. I am a programmer and an Open Source enthusiast, Presently working as a Software Engineer. Apart from that, I love to explore new technologies and things.

You may also like...

Leave a Reply