# 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 / shruti
the syntax for writting the macro is wrong..
we can't have "=" sign while writing macro..
i.e. #define -----
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How can I read in an object file and jump to locations in it?
Place the #include statement must be written in the program?
What do you mean by recursion in c?
What language is windows 1.0 written?
What are static variables in c?
What is difference between structure and union with example?
What is the difference between volatile and const volatile?
What is getche() function?
Explain what is the difference between text files and binary files?
Where we use clrscr in c?
What is a const pointer in c?
What is the size of structure in c?
What are the application of void data type in c?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
Explain what are header files and explain what are its uses in c programming?