Image

Programs - C Language - Increment & Decrement

Program:

#include<stdio.h>
#include<conio.h>
void main(){
int a=10;
 clrscr();

printf("%d\n",--a);
printf("%d\n",a);
printf("%d\n",a--);
printf("%d\n",a);
printf("%d\n",--a);
printf("%d\n",a--);
printf("%d\n",a);

 getch();
}