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

Is it legal in c++ to overload operator++ so that it decrements a value in your class?

1019


What is a namespace in c++?

1943


Why are pointers used?

954


What is encapsulation in c++?

1228


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

917


How does work in c++?

1034


Why do we need function?

1015


What is constructor c++?

1074


Will c++ be replaced?

1005


How are Structure passing and returning implemented by the compiler?

1077


What are friend classes? What are advantages of using friend classes?

1054


What is the purpose of templates in c++?

997


Is there finally in c++?

1045


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

1075


What are the various arithmetic operators in c++?

1084