SO WHAT IS DECREMENT? MANY HAVE THEM ARE HAVING THE DOUBTS AND CONFUSIONS ABOUT IT. SO WE CAN CLEAR OUR DOUBTS AND CONFUSIONS IN THIS PAGE. OK LET US DISCUSS.
DECREMENT:
IN SIMPLE WORDS DECREMENT IS USED TO DECREASE THE VALUE ONE BY ONE.
DECREMENT CAN BE KNOWN BY THE SYMBOL (--).
THE BELOW PROGRAM IS USED TO EXPLAIN ABOUT DECREMENT OPERATOR.
#include<stdio.h>
#include<conio.h>
void main()
{
int a=3;
clrscr();
printf("%d\n",--a);
getch();
}
No comments:
Post a Comment