38. WAP to understand increment and decrement operator.
#include<stdio.h>
void
main()
{
int i = 10,j;
// printf("i = %d\n",i);
// ++i;
// printf("i = %d\n",i);
// printf("i = %d\n",i);
// i++;
// printf("i = %d\n",i);
// printf("i = %d\n",i);
// j=i++;
// printf("j = %d\n",j);
printf("i = %d\n",i);
j=++i;
printf("j = %d\n",j);
}
Comments
Post a Comment