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

Is dev c++ free?

976


What do you mean by delegate? Can a user retain delegates?

889


Explain 'this' pointer and what would happen if a pointer is deleted twice?

1028


What is the use of pointer in c++ with example?

997


What is lambda expression c++?

1014


Write a C++ Program to check whether a number is prime number or not?

1072


How much do coding jobs pay?

973


What is encapsulation in c++?

1224


What is class in c++ with example?

1158


Who created c++?

1023


Explain stack unwinding.

1026


Explain static and dynamic memory allocation with an example each.

1057


What is purpose of new operator?

1025


Why c++ is the best language?

1012


What is the benefit of encapsulation?

1031