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

Is atoi safe?

0 Answers  


Tell me difference between constant pointer and pointer to a constant.

0 Answers   Honeywell, Zomato,


Can we sort map in c++?

0 Answers  


What are put and get pointers?

0 Answers  


What is command line arguments in C++? What are its uses? Where we have to use this?

0 Answers   HCL,


What are the 3 levels of programming languages?

0 Answers  


What is heap sort in c++?

0 Answers  


What are the operators in c++?

0 Answers  


Why pointer is used in c++?

0 Answers  


Can we use struct in c++?

0 Answers  


why and when we can declar member fuction as a private in the class?

0 Answers  


Why preincrement operator is faster than postincrement?

5 Answers  


Categories