# 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 / vint
Assuming '=' is added by mistake in the macro.
#define prod(a,b) a*b
int main()
{
int x=2, y=3;
printf("%d",prod(x+2,y-10));
return 0;
}
Ans: None
The output is -2
a*b
x+2*y-10
2+2*3-10
2+6-10
8-10
-2
Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How can you be sure that a program follows the ANSI C standard?
Explain how can I convert a string to a number?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
Explain what is the heap?
What does malloc () calloc () realloc () free () do?
Can you write the function prototype, definition and mention the other requirements.
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
What is the use of header?
What type is sizeof?
What are reserved words with a programming language?
What does double pointer mean in c?
in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures
What is meant by recursion?
What is a lvalue
What is array of structure in c?