Consider the following statements:
# define hypotenuse (a, b) sqrt (a*a + b*b);
The macro-call hypotenuse (a + 2, b + 3);
1 Crore+ students have signed up on EduRev. Have you? Download the App |
For the previous question, which of the following macro-calls, will find the hypotenuse of a right angled triangle with sides a + 1 and b + 1 ?
If p is pointer to an integer and t is a pointer to a character then size of (p) will be
Which of the following comments about arrays and pointers is/are true?
1. Both are exactly same.
2. Array is a constant pointer.
3. Pointer is an one-dimensional array.
4. Pointer is a dynamic array.
It is not advisable to use macros instead of functions because
Use of macro instead of function is recommended
The number of additions performed by the above program fragment is
55 docs|215 tests
|
55 docs|215 tests
|