Comma Operator

Thursday, 8 September 2011

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


OUTPUT:


a=9
b=4
c=5











No comments:

Post a Comment

 

Blogger news

Blogroll

Enter your email address:

Delivered by FeedBurner

Total Pageviews

Followers

Most Reading