What is the difference between inline functions and macros?
Answer Posted / glibwaresoftsolutions
• 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
Is c++ a good first language to learn?
Which software is used to run c++ program?
Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?
Explain virtual class?
What is a volatile variable in c++?
When there is a global variable and local variable with the same name, how will you access the global variable?
Define virtual constructor.
What is protected inheritance?
What are stacks?
What is a stack? How it can be implemented?
Why is polymorphism useful?
total amount of milk produced each morning and then calculates and outputs the number of cartons needed for this milk , the cost of producing the milk and the profit from producing this milk.
What is a binary file? List the merits and demerits of the binary file usagein C++.
We use library functions in the program, in what form they are provided to the program?
What are static member functions?