//increment/decrement operators
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x=5;
x++;
printf("\n x=%d",x);
printf("\n x=%d",x++);
printf ("\n x=%d",x);
++x;
printf("\n x=%d",x);
printf("\n x=%d",x);
printf("\n x=%d",x);
system("pause");
return 0;
}
#include <stdio.h>
#include <stdlib.h>
int main()
{
int x=5;
x++;
printf("\n x=%d",x);
printf("\n x=%d",x++);
printf ("\n x=%d",x);
++x;
printf("\n x=%d",x);
printf("\n x=%d",x);
printf("\n x=%d",x);
system("pause");
return 0;
}
No comments:
Post a Comment