Write a program to demonstrate the results obtained by using the increment operators on operands with pre- and post- effect.

C Programming Language Operators and Enums in C Language (Article) Operators and Enums in C Language (Program)

5387

Program:

/*
 Program: Write a program to demonstrate the results obtained by using the
  increment operators on operands with pre- and post- effect.  
  
 Author: www.atnyla.com  
 
*/ 

#include "stdio.h" 
int main()
{
int x=5;
printf("Values are %d and %d\n",x++,++x);
return 0;
} 

Output:

Values are 6 and 6
Press any key to continue . . .

Explanation:

None

This Particular section is dedicated to Programs only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.