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 is the importance of oop?

826


String = "C++ is an object oriented programming language.An imp feature of oops is classes and objects".Write a pgm to count the repeated words from this scenario?

2142


What are functions in oop?

776


What is data binding in oops?

815


How is polymorphism achieved?

763


What is the significance of classes in oop?

790


Which is better struts or spring?

798


What is the problem with multiple inheritance?

808


What is the full form of oops?

905


What are the three main types of variables?

823


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3815


What are the three parts of a simple empty class?

1750


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

1841


What is this pointer in oop?

778


What is advantage of inheritance?

921