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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

If all is successful, what should main return a) 0 b) 1 c) void

1018


What is a node class in c++?

1073


How can you link a c++ program to c functions?

1107


Which format specifier is used for printing a pointer value?

1064


What is auto used for in c++?

1053


What is the difference between while and do while loop?

1164


Differentiate between an external iterator and an internal iterator? What is the advantage of an external iterator.

1044


What is private inheritance?

1097


How would you implement a substr() function that extracts a sub string from a given string?

1052


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

1083


How can you link a c program with a c function?

1076


What is #include math h in c++?

1095


Difference between pointer to constant vs. Pointer constant

1138


Is it possible to have a recursive inline function in c++?

1032


What are guid?

1249