Tuesday, 25 August 2020

WHAT IS DECREMENT IN C PROGRAM WITH EXAMPLE?

IN THIS POST WE ARE GOING TO LEARN ABOUT DECREMENT IN C PROGRAMMING LANGUAGE.

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

C Programming

What is DBMS in brief?

A Database Management System (DBMS) is a software suite designed to efficiently manage, organize, store, manipulate, and retrieve data. It a...