# 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
When should the const modifier be used?
Once I have used freopen, how can I get the original stdout (or stdin) back?
Is c easier than java?
Where local variables are stored in c?
How can you increase the allowable number of simultaneously open files?
In a switch statement, explain what will happen if a break statement is omitted?
Explain what is a program flowchart and explain how does it help in writing a program?
What are the types of unary operators?
What are the __date__ and __time__ preprocessor commands?
How can I automatically locate a programs configuration files in the same directory as the executable?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
what is the significance of static storage class specifier?
What is the use of bit field?
List out few of the applications that make use of Multilinked Structures?
Explain what is the use of a semicolon (;) at the end of every program statement?