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
How many types of classes are there in c++?
What is pure virtual function? Or what is abstract class?
Are vectors passed by reference c++?
Please explain the reference variable in c++?
write a function signature with various number of parameters.
What is binary object model?
What are containers in c++?
What is meant by the term name mangling in c++?
What is the difference between a baller and a reference in C++?
What is runtime errors c++?
Do class method definitions?
Will a catch statement catch a derived exception if it is looking for the base class?
What do you mean by public protected and private in c++?
Where and why do I have to put the "template" and "typename" keywords?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop