What is the difference between const and constexpr?
Answer Posted / hr@tgksolutions.com
• const: Value remains constant; evaluated at runtime.
• constexpr: Evaluated at compile time for optimization.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can union be self referenced?
List down the guideline that should be followed while using friend function.
What is buffering in c++?
How can you quickly find the number of elements stored in a static array?
Explain static and dynamic memory allocation with an example each.
What are the benefits of pointers?
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 the difference between an enumeration and a set of pre-processor # defines?
What are the benefits of operator overloading?
What is meant by a delegate?
Are strings immutable in c++?
What is time_t c++?
Mention the storage classes in c++.
Explain what are single and multiple inheritances in c++?
What is the need of a destructor? Explain with the help of an example.