# 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


Please Help Members By Posting Answers For Below Questions

How can I read in an object file and jump to locations in it?

769


Place the #include statement must be written in the program?

744


What do you mean by recursion in c?

836


What language is windows 1.0 written?

765


What are static variables in c?

791






What is difference between structure and union with example?

791


What is the difference between volatile and const volatile?

732


What is getche() function?

795


Explain what is the difference between text files and binary files?

834


Where we use clrscr in c?

876


What is a const pointer in c?

842


What is the size of structure in c?

873


What are the application of void data type in c?

956


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.

837


Explain what are header files and explain what are its uses in c programming?

847