What are the advantages and disadvantages of using inline
and const?
Answer Posted / nidhi singh
advantages of inline-no function calls need to be
generated.no stack required.
disadvantage -inline functions require more space..
the whole definition is copied.
by using const we insure the value of variable is not goin
to change..
| Is This Answer Correct ? | 42 Yes | 13 No |
Post New Answer View All Answers
Does improper inheritance have a potential to wreck a project?
What is a buffer c++?
How would you use the functions memcpy(), memset(), memmove()?
What is encapsulation in c++ with example?
What is an adaptor class or wrapper class in c++?
Explain the pure virtual functions?
Will this c++ program execute or not?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is difference between class and structure in c++?
What is constructor in C++?
Is swift a good first language?
Explain what is class definition in c++ ?
What is a lambda function c++?
Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---
Explain overriding.