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 / karunesh

int GetNum()
{

printf("this will compile under c but not in c++");

}

you will get a error under g++ funtion should return int
while in c i will work with warning.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is private public protected in c++?

980


Why was c++ created?

974


What are pointers used for c++?

1003


Explain the scope of resolution operator.

1045


What is prototype for that c string function?

1071


What is a terminating character in c++?

1319


Write about an iterator class?

1026


Define namespace in c++?

997


How is data hiding achieved in c++?

1023


What is low level language in simple words?

974


What is the use of lambda in c++?

963


Give an example of run-time polymorphism/virtual functions.

946


What is the use of endl in c++ give an example?

1102


What is a far pointer? where we use it?

1017


Who invented turbo c++?

1013