C Language - Increment/Decrement - College Work
#include <stdio.h>
#include <conio.h>
int main()
{
int a=20;
int b=20;
int c=30;
int d=30;
++a;
c++;
--b;
d--;
printf ("the value is %d\n", a);
printf ("the value is %d\n", b);
printf ("the value is %d\n", c);
printf ("the value is %d\n", d);
printf ("the address of a is %x\n", &a);
printf ("the address of b is %x\n", &b);
printf ("the address of c is %d\n", &c);
printf ("the address of d is %d\n", &d);
return 0;
}
//ScreenShot:
Comments
Post a Comment