Home Modern Forums ISRO

Consider the following statements

#define hypotenuse (a, b) sqrt (a*a+b*b); 

The macro call hypotenuse(a+2,b+3);
(A) Finds the hypotenuse of a triangle with sides a+2 and b+3
(B) Finds the square root of (a+2)2 and (b+3)2
(C) Is invalid
(D) Find the square root of 3*a + 4*b + 5

Reply To:

Consider the following statements

#define hypotenuse (a, b) sqrt (a*a+b*b); 

The macro call hypotenuse(a+2,b+3);
(A) Finds the hypotenuse of a triangle with sides a+2 and b+3
(B) Finds the square root of (a+2)2 and (b+3)2
(C) Is invalid
(D) Find the square root of 3*a + 4*b + 5

Up
0
Down
::

nan