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