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
How many ways can a variable be initialized into in C++?
Which of the following is evaluated first: a) && b) || c) !
Define linked lists with the help of an example.
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?
What is #include cstdlib in c++?
What is the use of cmath in c++?
What is c++ prototype?
What can I safely assume about the initial values of variables which are not explicitly initialized?
Can we use this pointer in a class specific, operator-overloading function for new operator?
Will the following program execute?
What is setiosflags c++?
What is a unnitialised pointer?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Can we declare a base-class destructor as virtual?
Can user-defined object be declared as static data member of another class?