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 are the advantages of using pointers in a program?
What is the use of lambda in c++?
How many types of classes are there in c++?
Which function cannot be overloaded c++?
What can c++ be used for?
Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?
Who calls main function?
What are advantages of using friend classes?
What do you mean by internal linking and external linking in c++?
How can I learn dev c++ programming?
What is a terminating character in c++?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create