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 using namespace std in c++?

0 Answers  


How can you quickly find the number of elements stored in a dynamic array?

0 Answers  


Is the declaration of a class its interface or its implementation?

0 Answers  


What are the differences between the function prototype and the function defi-nition?

0 Answers  


What are the differences between java and c++?

0 Answers  


What is the difference between while and do while loop?

0 Answers  


What is constructor and destructor in c++?

0 Answers  


What is the output of the following program? Why?

0 Answers  


How many types of scopes are there in c++?

0 Answers  


int f() { int I = 12; int &r = I; r += r / 4; int *p = &r; *p += r; return I; } Referring to the sample code above, what is the return value of the function "f()"? a) 12 b) 15 c) 24 d) 17 e) 30

2 Answers   AIG, Quark,


What is a container class? What are the types of container classes in c++?

0 Answers  


What is searching? Explain linear and binary search.

0 Answers  


Categories