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

Write any small program that will compile in "C" but not in
"C++"?

Answer Posted / sathish kumar

Hi All,

U can write many programs which will compile in C and not
in C++. Sample program.

const i; /* this is possible in C but not in C++ */
const int i; // it should be done like this in C++.


Thanks & Regards
Sathish Kumar

Is This Answer Correct ?    10 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by vtable and vptr in c++?

1043


What are the classes in c++?

1111


Which sort is best for the set: 1 2 3 5 4 a) Quick Sort b) Bubble Sort c) Merge Sort

1059


What is a float in c++?

985


What is the role of copy constructor in copying of thrown objects?

1070


What is the difference between #import and #include in c++?

1110


Can you pass an array to a function in c++?

1010


What is the basic of c++?

1062


Do you know the problem with overriding functions?

1109


What is const pointer and const reference?

1166


What is atoi?

973


What is the use of turbo c++?

1054


Write about the various sections of the executable image?

981


What do you mean by global variables?

1075


What is iterator c++?

992