Logo 
Search:

C Programming Articles

Submit Article
Home » Articles » C Programming » BeginnersRSS Feeds

Program to use increment and decrement operators

Posted By: Charles Evans     Category: C Programming     Views: 99607

Write a program to use increment and decrement operators.

Code for Program to use increment and decrement operators in C Programming

 #include<stdio.h>
 
 main( )
{
  int I,j,k;
 i = 3;
 j =4;
 k = i++ +  --j;
 printf("i = %d, j = %d, k = %d",i,j,k);
 }
  
Share: 


Didn't find what you were looking for? Find more on Program to use increment and decrement operators Or get search suggestion and latest updates.

Charles Evans
Charles Evans author of Program to use increment and decrement operators is from London, United Kingdom.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!