# 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
Tell me is null always defined as 0(zero)?
Why does everyone say not to use scanf? What should I use instead?
How are 16- and 32-bit numbers stored?
Give me the code of in-order recursive and non-recursive.
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer
What's a good way to check for "close enough" floating-point equality?
Define VARIABLE?
what is a NULL Pointer? Whether it is same as an uninitialized pointer?
What’s the special use of UNIONS?
Write a program for Overriding.
Whats s or c mean?
What is meant by operator precedence?
Where define directive used?
How can I remove the leading spaces from a string?
How can I do serial ("comm") port I/O?