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

Is there something that we can do in C and not in C++?

Answer Posted / som

In C the const variables can be declared and can allocate
the value later.
For ex:
const int i;
i = 7;

This will work in c, but c++ will give compilation error.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of data hiding?

1019


Is c++ a good beginners programming language?

1080


Differentiate between declaration and definition.

1053


what is multi-threading in C++?

1058


How is static data member similar to a global variable?

1125


Explain method of creating object in C++ ?

1107


How does list r; differs from list r();?

1158


Will the following program execute?

1040


When should we use multiple inheritance?

1052


What is meant by a delegate?

1098


What is private public protected in c++?

1053


What is scope in c++ with example?

1114


What is struct c++?

1006


What is the function to call to turn an ascii string into a long?

1067


What is a c++ object?

1180