how does a main() in C++ is different from main() in C?
Answer Posted / vishal palan
In C the main() does not return any value by default. But in C++ the main() returns value int by default.
Again
In U can complie progm by writing main(){....}
But in C++ u have to return int main() {...return 0;}
or void main() {...}
| Is This Answer Correct ? | 16 Yes | 13 No |
Post New Answer View All Answers
What is abstraction in oops?
What is the difference between a mixin and inheritance?
What is constructor overloading in oop?
What is encapsulation in simple terms?
What is the difference between a constructor and a destructor?
What is polymorphism give a real life example?
What is oops with example?
How do you use inheritance in unity?
what are the realtime excercises in C++?
how to get the oracle certification? send me the answer
What is the real time example of encapsulation?
Why do we use inheritance?
What do you mean by overloading?
c++ program to swap the objects of two different classes
What is the importance of oop?