What and all can a compiler provides by default?
Answers were Sorted based on User's Feedback
Answer / shakti singh khinchi
5 things:
1: default constructor.
2: default destructor.
3: default copy constructor.
4: assignment operator (=).
5: address operator ('&').
Is This Answer Correct ? | 14 Yes | 0 No |
Answer / dee
default constructor, destructor, default copy constructor,
assignment operator.
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / sandy
Also operator "&"
class Test {};
int main()
{
Test t;
Test *ptr = &t;
return 0;
}
Is This Answer Correct ? | 4 Yes | 5 No |
How do you show the declaration of a virtual constructor?
What is a local variable?
which is the easy way to divide any integer by 2?
What is vectorial capacity?
What do you know about friend class and friend function?
What is constructor and destructor in c++?
What's the best free c++ profiler for windows?
Keyword mean in declaration?
Is there finally in c++?
What c++ library is string in?
What is the difference between an external iterator and an internal iterator?
What is virtual function? Explain with an example