# 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
Do character constants represent numerical values?
What is unsigned int in c?
If null and 0 are equivalent as null pointer constants, which should I use?
What is an lvalue in c?
What do you mean by keywords in c?
If fflush wont work, what can I use to flush input?
PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM
What are header files and explain what are its uses in c programming?
What is class and object in c?
How can I find the modification date of a file?
What is character set?
What is c preprocessor mean?
What is the difference between Printf(..) and sprint(...) ?
what is the structure pointer?
Is void a keyword in c?