adplus-dvertising
frame-decoration

Question

Consider the following statement.

# 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 + (b + 3)2

c.

is invalid

d.

finds the square root of 3 * a + 4 * b + 5

Answer: (d).finds the square root of 3 * a + 4 * b + 5

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Consider the following statement. # define hypotenuse(a, b) sqrt (a * a + b * b ) ; The macro-call hypotenuse ( a + 2, b + 3) ;

Similar Questions

Discover Related MCQs

Q. The ascending order of precedence of the bit-wise operators &, ^, | is

Q. The scope of a macro definition

Q. Which of the following comments are correct when macro definition includes arguments?

Q. lint is

Q. The number of possible values of m, such that m & 0x3f equals 0x23 is

Q. cb is a

Q. In what kind of structure for strings, one can easily insert, delete, concatenate and rearrange sustrings?

Q. If space occupied by a null terminated string "S1" and "S2"in "C" are respectively "m" and "n",the space occupied by the string obtained by concentrating "S₁"and "S₂"is always

Q. If space occupied by two strings s1 and s2 in 'C' are respectively m and n, then space occupied by string obtained by concatenating s1 and s2 is always

Q. Length of the string " correct " is

Q. Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?)

Q. A string that is a formal parameter can be declared

Q. C Language was developed at ?

Q. Many features of C were derived from which language ?

Q. What is C language?

Q. First version of C Programming language is ____ .

Q. C was initially used for

Q. C programming language is

Q. Which year C language is developed?

Q. Which of these is not an example for IDE in C?