# 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 / 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 |
Post New Answer View All Answers
Differentiate between functions getch() and getche().
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
What are the two types of functions in c?
What is a program flowchart?
Write a program to print ASCII code for a given digit.
What is this pointer in c plus plus?
where are auto variables stored? What are the characteristics of an auto variable?
Explain what is a 'locale'?
What is wrong with this program statement? void = 10;
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
If errno contains a nonzero number, is there an error?
what is the diffrenet bettwen HTTP and internet protocol
What does s c mean in text?
Explain what is the difference between a free-standing and a hosted environment?
Using which language Test cases are added in .ptu file of RTRT unit testing???