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
what are the realtime excercises in C++?
Is html an oop?
What does and I oop and sksksk mean?
What is overriding in oops?
Can we have inheritance without polymorphism?
Why is abstraction needed?
what is the drawback of classical methods in oops?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What does I oop mean?
How Do you Code Composition and Aggregation in C++ ?
Why polymorphism is used in oops?
Why do we need polymorphism in c#?
why reinterpret cast is considered dangerous?
Can main method override?
How can you overcome the diamond problem in inheritance?