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

Is map sorted c++?

938


Why is it called c++?

971


How are Structure passing and returning implemented by the compiler?

1054


Describe the advantages of operator overloading?

984


How is objective c different from c++?

1189


Is c++ a good first language to learn?

1009


What are the extraction and insertion operators in c++?

944


Why do we use pointers in c++?

964


What is a string example?

1007


Is c++ low level?

990


Explain binary search.

939


What is the c++ code?

1075


What is an html tag?

1074


How new/delete differs from malloc()/free?

1085


What are arithmetic operators?

937