What is the difference between const and constexpr?
Answer Posted / nashiinformaticssolutions
• 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
What are the differences between malloc() and calloc()?
When should I use unitbuf flag?
Why is c++ still used?
What is the use of dot in c++?
What is an operator in c++?
What is near, far and huge pointers? How many bytes are occupied by them?
What is the difference between multiple and multilevel inheritance in c++?
What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?
What would happen on forgetting [], while deallocating an array through new?
Should I learn c or c++ first?
What does the following do: for(;;) ; a) Illegal b) Loops forever c) Ignored by compiler...not illegal
What is meant by const_cast?
What is a template in c++?
What is private inheritance?
What is the use of pointer in c++ with example?