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
Which language is pure oop?
I have One image (means a group photo ) how to split the faces only from the image?............ please send the answer nagadurgaraju@gmail.com thanks in advace...
How do you achieve runtime polymorphism?
can inline function declare in private part of class?
What is the purpose of enum?
Why can't we have instance(stack) of a class as a member of the same class like eg.Class A{A obj;} as we can have self refential pointer
How many human genes are polymorphic?
assume the program must insert 4 elements from the key board and then do the following programs.sequential search(search one of the elements),using insertion sort(sort the element) and using selection sort(sort the element).
What are the advantages of polymorphism?
What is coupling in oop?
What is static in oop?
Is oop better than procedural?
What is encapsulation in oops?
which feature are not hold visual basic of oop?
Why do we use encapsulation in oops?