C program on increment and decrement precedence;
#include<stdio.h>
int main()
{
int x = 12, y = 1;
printf("Initial value of x = %d\n", x);
printf("Initial value of y = %d\n\n", y);
y = ++x;
printf("After incrementing by 1: x = %d\n", x);
printf("y = %d\n\n", y);
y = --x;
printf("After decrementing by 1: x = %d\n", x);
return 0;
}
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile