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 the real time example of inheritance?
Why do we need oop?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< can inline function declare in private part of class? How do you achieve polymorphism? Why is object oriented programming so hard? given a set based questions and 5 questions based on it
next data sufficiciency questions 2
and 2/3 english sentence completion with options very easy
and 2 synononmys
paragraph with 10 questions 10 minutes
replace =,-,*,% with -,%,+,* type questions 5
3 questions lik following
itssickhere itssickthere itssickhere istsickhere
which is nt alike the others
very easy
Why is encapsulation used? Is abstract thinking intelligence? What is the example of polymorphism? What is constructor overloading in oop? How do you achieve runtime polymorphism? Write a java applet that computes and displays the squares
of values between 25 and 1 inclusive and displays them in a
TextArea box
What is the significance of classes in oop? What is use of overloading?