Write a program to demonstrate the results obtained by using the increment operators on operands in post- mode in an arithmetic expression.

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

836

Program:

/*
 Program:  Write a program to demonstrate the results obtained by using the increment operators on operands in post- mode in an arithmetic expression.  
  
 Author: www.atnyla.com  
 
*/ 

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

Output:

Result = 8
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.