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
Define pointers?
What is auto type c++?
Why we use #include conio h in c++?
Explain virtual class and friend class.
Refer to a name of class or function that is defined within a namespace?
How do I download c++?
what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?
Why c++ is the best language?
What do you mean by stack unwinding in c++?
What is pointer -to-members in C++? Give their syntax?
Can we specify variable field width in a scanf() format string? If possible how?
Is c++ vector dynamic?
What is class invariant in c++?
How do you establish a has-a relationship?
When is dynamic checking necessary?