What is the difference between inline functions and macros?
Answer Posted / nashiinformaticssolutions
• Inline Functions: Type-checked, replace function calls with code during compilation.
• Macros: Preprocessor directive, no type-checking.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the use of seekg in c++?
What is guard code in c++?
What is using namespace std in c++?
Give 10 points of differences between C & C++.
Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].
What is function overloading c++?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Can we use pointers in c++?
If a round rectangle has straight edges and rounded corners, your roundrect class inherits both from rectangle and from circle, and they in turn both inherit from shape, how many shapes are created when you create a roundrect?
How can we check whether the contents of two structure variables are same or not?
Difference between a homogeneous and a heterogeneous container
What is the use of cmath in c++?
Comment on c++ standard exceptions?
What is a literal in c++?
Explain method of creating object in C++ ?