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 are the 5 oop principles?

594


What does enum stand for?

605


What is encapsulation in simple terms?

532


What are constructors in oop?

583


What do you mean by variable?

567






What is polymorphism and types?

594


What is variable example?

591


How long to learn object oriented programming?

555


Which method cannot be overridden?

572


How is class defined?

574


Which type does string inherit from?

608


Why is static class not inherited?

590


Why we use classes in oop?

571


Why do we use oop?

595


What is coupling in oops?

589