Question
# 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
Posted under C Programming
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
View solution
Q. The scope of a macro definition
View solution
Q. Which of the following comments are correct when macro definition includes arguments?
View solution
Q. lint is
View solution
Q. The number of possible values of m, such that m & 0x3f equals 0x23 is
View solution
Q. cb is a
View solution
Q. In what kind of structure for strings, one can easily insert, delete, concatenate and rearrange sustrings?
View solution
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
View solution
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
View solution
Q. Length of the string " correct " is
View solution
Q. Which of the following comments regarding the reading of a string using scanf( with %s option and gets, is true ?)
View solution
Q. A string that is a formal parameter can be declared
View solution
Q. C Language was developed at ?
View solution
Q. Many features of C were derived from which language ?
View solution
Q. What is C language?
View solution
Q. First version of C Programming language is ____ .
View solution
Q. C was initially used for
View solution
Q. C programming language is
View solution
Q. Which year C language is developed?
View solution
Q. Which of these is not an example for IDE in C?
View solution
Suggested Topics
Are you eager to expand your knowledge beyond C Programming? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!