What is the difference between const and constexpr?
Answer Posted / nashiinformaticssolutions
o const: The value is constant and determined at runtime or compile-time.
o constexpr: The value is constant and must be computed at compile-time.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Which programming language should I learn first?
What is the difference between interpreters and compilers?
What is this weird colon-member (" : ") syntax in the constructor?
What kind of problems can be solved by a namespace?
What is public, protected, private in c++?
List the issue that the auto_ptr object handles?
What are default parameters? How are they evaluated in c++ function?
What are static and dynamic type checking?
What is == in programming?
How many different levels of pointers are there?
What is #include cmath?
Why iomanip is used in c++?
Describe new operator and delete operator?
Which c++ operator cannot overload?
Why can templates only be implemented in the header file?