# 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
There is a practice in coding to keep some code blocks in comment symbols than delete it when debugging. How this affect when debugging?
What is difference between arrays and pointers?
What is the benefit of using an enum rather than a #define constant?
What is structure padding and packing in c?
What is the meaning of ?
Write a program to swap two numbers without using third variable?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What is getche() function?
What does int main () mean?
what is the function of pragma directive in c?
Explain modulus operator.
What is #error and use of it?
What are the disadvantages of external storage class?
What does != Mean in c?
Explain what is page thrashing?