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
How do you add an element to a set in c++?
Will the following program execute?
Does c++ have a hash table?
Is swift faster than c++?
What is the use of lambda in c++?
What are activex and ole?
Is eclipse good for c++?
There are 100 students in a class. The management keep information in two tables. Those two tables are given like Roll no Name Age 001 ABC 15 002 XYZ 14 and Roll No Subject Marks 001 Math 75 001 Physics 55 002 Math 68 001 Hindi 69 They want the information like this Roll No Name Hindi Physics Math Total 001 ABC 69 55 75 199 002 XYZ 68 74 84 226 And Roll No Suject Highest 001 Math 98 007 Physics 84 021 Hindi 74 All 275 All information is kept in structure in main memory. You have to find last two tables.
What are formatting flags in ios class?
What are stacks? Give an example where they are useful.
Difference between declaration and definition of a variable.
What is vector string in c++?
How to demonstrate the use of a variable?
What is stoi in c++?
What is a stack c++?