Write a C program using Prefix increment/decrement concept.

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();

}

12 views0 comments

Recent Posts

See All