Monday, 23 February 2015

Shortand Assignment Operator in C


#include<stdio.h>
#include<conio.h>
main()
{
int a=10;
clrscr();
printf("\n A+=10 :%d",(a+=10));
printf("\n A-=10 :%d",(a-=10));
printf("\n A*=10 :%d",(a*=10));
printf("\n A/=10 :%d",(a/=10));
printf("\n Remider Value is :%d",(a%=10));
getch();
}

No comments:

Post a Comment