top of page
Writer's pictureYatendra Awana

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

}

16 views0 comments

Recent Posts

See All

Comments

Couldn’t Load Comments
It looks like there was a technical problem. Try reconnecting or refreshing the page.
bottom of page