Write a c program using Prefix increment/decrement concept.
#include<stdio.h>
void main()
{
int a=8;
printf("value of a before using prefix increment=%d\n",a);
printf("value of a after using prefix increment=%d\n",++a);
printf("value of a before using prefix decrement=%d\n",a);
printf("value of a after using prefix decrement=%d\n",++a);
printf("value of a is =%d\n",a);
getch();
}
Commenti