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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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

1081


What is pure virtual function? Or what is abstract class?

1117


Are vectors passed by reference c++?

1051


Please explain the reference variable in c++?

1127


write a function signature with various number of parameters.

1097


What is binary object model?

1092


What are containers in c++?

1031


What is meant by the term name mangling in c++?

1002


What is the difference between a baller and a reference in C++?

1167


What is runtime errors c++?

1164


Do class method definitions?

1090


Will a catch statement catch a derived exception if it is looking for the base class?

1061


What do you mean by public protected and private in c++?

1109


Where and why do I have to put the "template" and "typename" keywords?

1097


Write a short code using c++ to print out all odd number from 1 to 100 using a for loop

1079