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
5443Program:
/* 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.
# C Tutorials
# JAVA Tutorials
# HTML Tutorials
# Computer Fundamental
# Data Structure
# DBMS Tutorials
SQL
# C# Language
# R Language
# PHP
# Python
# Vue JS