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 is the last index number in an array of 100 characters a) 100 b) 99 c) 101

1227


What is the fastest c++ compiler?

1184


Explain friend class?

1186


Can we make copy constructor private in c++?

1098


What is setw manipulator in c++?

1125


Do the names of parameters have to agree in the prototype, definition, and call to the function?

1079


What is c++ 11 and c++ 14?

1110


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

1052


what are function pointers?

1142


What does it mean to declare a member function as static?

1112


Is c++ the hardest programming language?

1178


What are the benefits of operator overloading?

1271


Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.

3945


What is increment operator in c++?

1060


Is linux written in c or c++?

1089