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 / uma sankar pradhan

xyz()
{
printf("very good");
}

the above code will compile in 'c'
but in 'c++' it will give compilation error

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you explicitly call a destructor on a local variable?

1068


What is a dll entry point?

1065


Do you know what is overriding?

1292


Do you know what are pure virtual functions?

1199


What is atoi?

1022


Is atoi safe?

1094


How is static data member similar to a global variable?

1167


What is meant by iomanip in c++?

1290


What are the defining traits of an object-oriented language?

1258


How many different levels of pointers are there?

1277


Why Pointers are not used in C++?

1126


Explain rtti.

1136


What is the difference between mutex and binary semaphore?

1292


Explain some examples of operator overloading?

1161


What should main() return in c and c++?

1072