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

Explain the use of vtable.

1069


Const char *p , char const *p What is the difference between the above two?

1199


Incase of a function declaration, what is extern means?

952


What is the full form of india?

1109


Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

989


Explain the uses oof nested class?

1124


What is the difference between delegation and implemented-in-terms-of?

996


Does dev c++ support c++ 11?

1003


What is the error in the code below and how should it be corrected?

749


Can we define a constructor as virtual in c++?

1114


If a function doesn’t return a value, how do you declare the function?

1046


What does flush do?

974


What is constructor c++?

1106


Explain the volatile and mutable keywords.

1063


Is it possible to pass an object of the same class in place of object reference to the copy constructor?

1026