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

How many ways can a variable be initialized into in C++?

971


Which of the following is evaluated first: a) && b) || c) !

2305


Define linked lists with the help of an example.

981


what is the difference between linear list linked representaion and linked representation? what is the purpose of representing the linear list in linked represention ? is it not avoiding rules of linear represention?

2288


What is #include cstdlib in c++?

1140


What is the use of cmath in c++?

1007


What is c++ prototype?

1080


What can I safely assume about the initial values of variables which are not explicitly initialized?

999


Can we use this pointer in a class specific, operator-overloading function for new operator?

1050


Will the following program execute?

991


What is setiosflags c++?

908


What is a unnitialised pointer?

1014


Why isn't sizeof for a struct equal to the sum of sizeof of each member?

945


Can we declare a base-class destructor as virtual?

959


Can user-defined object be declared as static data member of another class?

966