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
write string class as your own class in java without using any built-in function
What is object-oriented programming? Webopedia definition
What is encapsulation oop?
They started with the brief introduction followed by few basic C++ questions on polumorphism, inheritance and then virtual functions. What is polymorphims? How you will access polymorphic functions in C? How virtual function mechanism works?
What is the use of oops?
What are functions in oop?
Explain the advantages of inheritance.
Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?
What is pointer in oop?
Give two or more real cenario of virtual function and vertual object
What is an example of genetic polymorphism?
can inline function declare in private part of class?
Why it is called runtime polymorphism?
What is abstraction in oops with example?
Is html an oop?