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
0 comments:
Post a Comment