Pages

Friday, August 19, 2016

Use of decrement (--) operator in C program.


//Use of decrement (--) operator in C program.
#include<stdio.h>
void main()
{
            int marks=61;
           
            marks--; //will subtract 1 from 61
           
            printf("%d", marks);
}



Output of the Program:

60



No comments:

Post a Comment