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

Answer Posted / hamza

in C++, you do not need to type "return 0;" statement in a [ int main() {} ]as it will be provided automatically but not in case of C.

Is This Answer Correct ?    22 Yes 32 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by abstraction?

694


What is oops with example?

657


What are two types of polymorphism?

691


What are different oops concepts?

668


What is multilevel inheritance in oop?

641






What is coupling in oop?

686


What is the difference between a mixin and inheritance?

613


Where is pseudocode used?

645


How to improve object oriented design skills?

654


Hi friends I have experience of 6 months in website design and maintanence. Now i am looking for other IT jobs.. to switch platform. please post any interview you know in chennai.

1873


Describe these concepts: Polymorphism, Inheritance and Abstraction.

702


Is oop better than procedural?

657


What is the real life example of polymorphism?

711


Can you explain polymorphism?

674


What is oops in programming?

645