Get Email Subscription

Enter your email address:

Delivered by FeedBurner

Tuesday, February 16, 2010

Write the output for the following C program



#define h(a , b) a > b ? a : b
main( )
{
int x=25, y=33, z=10;
x+=3*y++;
y*=3;
z+=h(x,y);
printf("%d \n %d\n %d \n", x, y, z);

Meaning :-
h(a,b) = a if condition a >b is true.
h(a,b) = b if condition a >b is not true.

Output
124
102
134

Related Posts by Categories



0 comments:

About This Blog

Lorem Ipsum

  © Blogger templates Newspaper III by Ourblogtemplates.com 2008

Back to TOP