What are the valid types of data that the main () can
return in C/C++ language
Answers were Sorted based on User's Feedback
Answer / milind furia
int and void(if u consider this as a datatype) only
| Is This Answer Correct ? | 4 Yes | 6 No |
Answer / umashankar mishra
c returns int data type
whereas c++ return void
| Is This Answer Correct ? | 0 Yes | 4 No |
What is constructor in oop?
What do we mean by a hidden argument in C++?
suppose A is a base class and B is the derved class. Both have a method foo which is defined as a virtual method in the base class. You have a pointer of classs B and you typecast it to A. Now when you call pointer->foo, which method gets called? The next part of the question is, how does the compiler know which method to call?
Which language is not a true object oriented programming language?
Where is pseudocode used?
What is the real life example of polymorphism?
What is polymorphism in oops?
In c++ there is only virtual destructors, no constructors. Why?
Why is abstraction used?
what is the technical or oop name of object?
What is abstract class in oops?
What are different oops concepts?