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 / aashish kumar nath

We can do many programs which will run in C but not in C++
like if we declare

int class=8 /*It will run in C but not in c++ */

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which sort does c++ use?

1024


How do I start a c++ project?

1083


How do you declare A pointer to a function which receives nothing and returns nothing

1239


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

1037


If you don’t declare a return value, what type of return value is assumed?

959


Explain container class.

1256


Show the declaration for a pointer to function returning long and taking an integer parameter.

1147


How is static data member similar to a global variable?

1126


What is the C-style character string?

1158


Difference between pass by value and pass by reference?

1158


Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?

2530


How to access a variable of the structure?

1097


What are containers in c++?

995


Mention the storage classes in c++.

1083


What is the difference between #define debug 0 and #undef debug?

1191