# define prod(a,b)=a*b
main()
{
int x=2;
int y=3;
printf("%d",prod(x+2,y-10)); }
the output of the program is
a.8
b.6
c.7
d.none
Answer Posted / arun raj
It will lead to compilation error..
Note: # define prod(a,b)=a*b
'=' is not allowed with #define
regards,
Arun Raj
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
How can I pad a string to a known length?
Explain the use of 'auto' keyword in c programming?
Where in memory are my variables stored?
write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34
What are the various types of control structures in programming?
Give a one-line C expression to test whether a number is a power of 2. [No loops allowed - it's a simple test.]
Why doesn't C support function overloading?
What is a struct c#?
Can we access array using pointer in c language?
What does the error message "DGROUP exceeds 64K" mean?
Can one function call another?
What is c programming structure?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What do you understand by friend-functions? How are they used?
Is null a keyword in c?