# 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
Answers were Sorted based on User's Feedback
Answer / arun raj
It will lead to compilation error..
Note: # define prod(a,b)=a*b
'=' is not allowed with #define
regards,
Arun Raj
| Is This Answer Correct ? | 19 Yes | 1 No |
Answer / sivasyam
with out using conditional opraters and conditional
statments(i.e &,| etc, and if,whileand etc.,) find the
bigeesst value between two values
| Is This Answer Correct ? | 2 Yes | 1 No |
How to swap 3 numbers without using 4th variable?
write a program that accepts 3 numbers from the user. dispaly the values in a descending order.
Program to find larger of the two numbers without using if-else,while,for,switch
Is a house a mass structure?
Why is c called c not d or e?
give one ip, find out which contry
parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..
What is 2c dna?
What is the real difference between arrays and pointers?
27 Answers Hexaware, Logic Pro, TCS,
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
What is pointer to pointer in c with example?
What is the Lvalue and Rvalue?