Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between const and constexpr?

Answers were Sorted based on User's Feedback



What is the difference between const and constexpr?..

Answer / nashiinformaticssolutions

• const: Value remains constant; evaluated at runtime.
• constexpr: Evaluated at compile time for optimization.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between const and constexpr?..

Answer / 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

What is the difference between const and constexpr?..

Answer / glibwaresoftsolutions

• const: Value remains constant; evaluated at runtime.
• constexpr: Evaluated at compile time for optimization.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between const and constexpr?..

Answer / 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

More C++ General Interview Questions

Why do we use classes in programming?

0 Answers  


Difference between delete and delete[]?

5 Answers   Infosys, TCS, Virtusa,


How the delete operator differs from the delete[]operator?

0 Answers  


without if else statement can be written ah

0 Answers  


What is a "RTTI"?

6 Answers   HCL,


Is c++ low level?

0 Answers  


Is java easier than c++?

0 Answers  


why c++ is not called strictly d super set of c?

3 Answers   Satyam,


Explain unexpected() function?

0 Answers  


What is meant by iomanip in c++?

0 Answers  


Write syntax to define friend functions in C++.

0 Answers   HAL,


How can you specify a class in C++?

0 Answers  


Categories