1.

Pick the correct statement.(a) Macros and inline functions are same thing(b) Macros looks like function calls but they are actually not(c) Inline functions looks like function but they are not(d) Inline function are always largeI had been asked this question in an internship interview.The above asked question is from Classes in portion Source Files, Classes and Operator Overloading in C++ of C++

Answer»

The correct option is (b) MACROS looks like FUNCTION CALLS but they are ACTUALLY not

Easy explanation - Macros in C++ looks like function calls but actually they are not function calls.



Discussion

No Comment Found

Related InterviewSolutions