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 is the importance of oop?
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?
What are functions in oop?
What is data binding in oops?
How is polymorphism achieved?
What is the significance of classes in oop?
Which is better struts or spring?
What is the problem with multiple inheritance?
What is the full form of oops?
What are the three main types of variables?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What are the three parts of a simple empty class?
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!!!)
What is this pointer in oop?
What is advantage of inheritance?