SO INCREMENT IS THE OPPOSITE OF DECREMENT.WE HAVE LEARNT WHAT IS DECREMENT AND ITS OPERATOR IN OUR LAST POST.
INCREMENT:
INCREMENT IS THE OPPOSITE OF DECREMENT. i.e. INCREASING THE VALUE ON BY ONE.
THE BELOW PROGRAM EXPLAINS ABOUT INCREMENT OPERATOR IN C PROGRAMMING LANGUAGE:
#include<stdio.h>
#include<conio.h>
void main()
{
int a=3;
clrscr();
printf("%d\n",++a);
getch();
}
No comments:
Post a Comment