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

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

this is correct and if u add getch();
in main then there is no chance of compilation in CPP for sure

Is This Answer Correct ?    3 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Are there interfaces in c++?

1067


What is functions syntax in c++?

1203


What are smart pointers?

2388


What is virtual methods?

1179


What are pointers used for c++?

1107


What is name hiding in c++?

1223


What is a pointer how and when is it used?

1146


Explain how an exception handler is defined and invoked in a Program.

1227


What is a singleton c++?

1046


What are the advantages of using pointers in a program?

1190


Write down the equivalent pointer expression for referring the same element a[i][j][k][l]?

1327


Who made c++?

1133


What are the three forms of cin.get() and what are their differences?

1316


Do you know the problem with overriding functions?

1170


What are signs of manipulation?

1119