# 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 goto?
Define and explain about ! Operator?
What are the three constants used in c?
How can I find out the size of a file, prior to reading it in?
Explain 'bit masking'?
Can a pointer be static?
Why c language?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
What are the basic data types associated with c?
Why C language is a procedural language?
Write a program to print "hello world" without using a semicolon?
What is difference between array and structure in c?
How can I make it pause before closing the program output window?
What is the heap?
What are control structures? What are the different types?