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 |
what is the use of Namespace in c++.
Can I learn c++ without learning c?
What are class and object in C++?
Difference between shift left and shift right?
Can the creation of operator** is allowed to perform the to-the-power-of operations?
What is a 'pure' virtual function and what's its use?
Using a smart pointer can we iterate through a container?
What is a manipulative person?
What is iterator in c++?
What is c++ used for in games?
How would you use qsort() function to sort an array of structures?
What are friend classes? What are advantages of using friend classes?