# 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
Explain 'bus error'?
What is a shell structure examples?
Tell us the use of fflush() function in c language?
Why clrscr is used in c?
How are 16- and 32-bit numbers stored?
What does sizeof function do?
What is the use of the function in c?
What does != Mean in c?
Write a program to print ASCII code for a given digit.
What does == mean in texting?
Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given
What is atoi and atof in c?
How do I convert a string to all upper or lower case?
Is linux written in c?
What is the best organizational structure?