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 is Destructor in C++?

1248


What is friend class in c++ with example?

1114


How come you find out if a linked-list is a cycle or not?

1083


What is the function to call to turn an ascii string into a long?

1118


Can we distribute function templates and class templates in object libraries?

1131


What jobs can you get with a c++ certification?

1105


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

2245


Differentiate between structure and class in c++.

1137


What is class and structure in c++?

1250


Why namespace is used in c++?

1118


Why c++ is the best language?

1115


How java is different from c and c++?

1257


how to connect with oracle 9i with server in socket program in c/c++

2395


What are references in c++? What is a local reference?

1104


Is python written in c or c++?

1201