What and all can a compiler provides by default?

Answers were Sorted based on User's Feedback



What and all can a compiler provides by default?..

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

What and all can a compiler provides by default?..

Answer / dee

default constructor, destructor, default copy constructor,
assignment operator.

Is This Answer Correct ?    13 Yes 0 No

What and all can a compiler provides by default?..

Answer / sandy

Also operator "&"

class Test {};

int main()
{
Test t;
Test *ptr = &t;
return 0;
}

Is This Answer Correct ?    4 Yes 5 No

Post New Answer

More C++ General Interview Questions

What are the advantages of using pointers in a program?

0 Answers  


What is the use of lambda in c++?

0 Answers  


How many types of classes are there in c++?

0 Answers  


Which function cannot be overloaded c++?

0 Answers  


What can c++ be used for?

0 Answers  






Why pure virtual functions are used if they don't have implementation / When does a pure virtual function become useful?

1 Answers  


Who calls main function?

0 Answers  


What are advantages of using friend classes?

0 Answers  


What do you mean by internal linking and external linking in c++?

1 Answers  


How can I learn dev c++ programming?

0 Answers  


What is a terminating character in c++?

0 Answers  


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

0 Answers  


Categories