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 / pulkit dave

void main()
{
int class=28;
printf("%d",class);
}


it works...

[class] :p

Is This Answer Correct ?    18 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What you know about structures in C++?

1006


Define the process of handling in case of destructor failure?

993


What is function overloading in C++?

1343


Is multimap sorted c++?

952


Can a new be used in place of old mallocq? If yes, why?

1038


Explain the difference between c++ and java.

1055


Do we have to use initialization list in spite of the assignment in constructors?

936


Define a constructor - what it is and how it might be called (2 methods)?

1062


How many static variables are created if you put one static member into a template class definition?

978


What is constructor and destructor in c++?

1057


Explain selection sorting. Also write an example.

982


what kind of projects are suitable for c and c++

991


an integer constant must have atleast one a) character b) digit c) decimal point

979


How to tokenize a string in c++?

1002


What are the various access specifiers in c++?

979