Decrement operator


/*Decrement operator*/

#include<stdio.h>

main()

{

int x=5;

clrscr();

printf(“%d”,x);

x–;

printf(“\nx–=%d”,x);

–x;

printf(“\n–x=%d”,x);

getch();

}

Output= 5

x–=4

–x=3

Related Posts

Comments are closed.