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 /

void main()
{
const var;
}

gives error in c++ but not in c....

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

2274


Can we specify variable field width in a scanf() format string? If possible how?

1152


Mention the ways in which parameterized can be invoked.

891


What is anonymous object in c++?

1035


What is the use of map in c++?

1092


What is the advantage of an external iterator.

978


Are c and c++ different?

935


Can you pass a vector to a function?

910


What is the difference between multiple and multilevel inheritance in c++?

1084


What is private inheritance?

1045


How one would use switch in a program?

1025


Why do we use using namespace std in c++?

1027


Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.

6342


Do you know the use of vtable?

1085


I was a c++ code and was asked to find out the bug in that. The bug was that he declared an object locally in a function and tried to return the pointer to that object. Since the object is local to the function, it no more exists after returning from the function. The pointer, therefore, is invalid outside.

1079