info@avatto.com
+91-9920808017
41. Consider the following statement. # define hypotenuse(a, b) sqrt (a * a + b * b ) ; The macro-call hypotenuse ( a + 2, b + 3) ;
finds the hypotenuse of a triangle with sides a + 2 and b + 3
finds the square root of (a + 2)2 + (b + 3)2
is invalid
finds the square root of 3 * a + 4 * b + 5
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
42. The ascending order of precedence of the bit-wise operators &, ^, | is
&, ^, |
^, &, I
|, ^, &
&, |, ^
43. The scope of a macro definition
cannot be beyond the file in which it is defined
may be part of a file
is the entire program
excludes string of characters within double quotes
44. lint is
a C compiler
an inter-active debugger
a C interpreter
a tool for analyzing a C program
45. Which of the following comments are correct when macro definition includes arguments?
The opening parenthesis should immediately follow the macro name
There should be at least one blank between the macro name and the opening parenthesis
There should be only one blank between the macro name and the opening parenthesis
All the above comments are correct
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login