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...

how does a main() in C++ is different from main() in C?

Answer Posted / vishal palan

In C the main() does not return any value by default. But in C++ the main() returns value int by default.
Again
In U can complie progm by writing main(){....}
But in C++ u have to return int main() {...return 0;}
or void main() {...}

Is This Answer Correct ?    16 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstraction in oops?

1093


What is the difference between a mixin and inheritance?

1038


What is constructor overloading in oop?

1180


What is encapsulation in simple terms?

1098


What is the difference between a constructor and a destructor?

1343


What is polymorphism give a real life example?

1077


What is oops with example?

1100


How do you use inheritance in unity?

1127


what are the realtime excercises in C++?

2897


how to get the oracle certification? send me the answer

2203


What is the real time example of encapsulation?

1115


Why do we use inheritance?

1193


What do you mean by overloading?

1128


c++ program to swap the objects of two different classes

2471


What is the importance of oop?

1145