What is the difference between const and constexpr?
Answer Posted / glibwaresoftsolutions
• 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 methods of exporting a function from a dll?
Define token in c++.
Why is main an int?
Can we change the basic meaning of an operator in c++?
What is the precedence when there is a global variable and a local variable in the program with the same name?
What is the most common mistake on c++ and oo projects?
Which function should be used to free the memory allocated by calloc()?
What does namespace mean in c++?
Explain deep copy and a shallow copy?
What is c++ w3school?
Why are pointers not used in c++?
What is long in c++?
Explain the advantages of using friend classes.
Write about the members that a derived class can add?
What gives the current position of the put pointer?