Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Tuesday, February 16, 2010

Write the output for the following C program



#define f(x) x > = 0 ? "real" : "complex"
main( )
{
int a=2, b=7, c=7, d;
d = (b*b-4*a*c);
printf("\n d is a %s values", f(d));
}

Meaning:-
f(x) will be real if x>0
f(x) will be complex if the above condition is not true.

Output :-
d is a complex values

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP