Pre & Post Increemaent

Thursday, 8 September 2011

#include<stdio.h>
#include<conio.h>
void main()
{
int a=5,b=4,c,d;
clrscr();
c=a++-b;
d=++a-b;
printf("c=%d\nd=%d",c,d);
getch();
}

OUTPUT:

c=1
d=3









No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading