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's the order in which the local objects are destructed?

1260


Which function cannot be overloaded c++?

1106


Why is it necessary to use a reference in the argument to the copy constructor?

1113


What is using namespace std in cpp?

1145


What is ifstream c++?

1028


What's the most powerful programming language?

1035


What is atoi?

965


What is the prototype of printf function?

1171


What is a storage class?

1260


How do you invoke a base member function from a derived class in which you have not overridden that function?

1118


Are vectors passed by reference c++?

980


What's c++ used for?

1105


What is the use of 'using' declaration in c++?

1131


List the types of polymorphism in c++?

1100


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

1052