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
If all is successful, what should main return a) 0 b) 1 c) void
What is a node class in c++?
How can you link a c++ program to c functions?
Which format specifier is used for printing a pointer value?
What is auto used for in c++?
What is the difference between while and do while loop?
Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.
What is private inheritance?
How would you implement a substr() function that extracts a sub string from a given string?
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
How can you link a c program with a c function?
What is #include math h in c++?
Difference between pointer to constant vs. Pointer constant
Is it possible to have a recursive inline function in c++?
What are guid?