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

How do you show the declaration of a virtual constructor?

0 Answers  


What is a local variable?

0 Answers  


which is the easy way to divide any integer by 2?

2 Answers   Persistent,


What is vectorial capacity?

0 Answers  


What do you know about friend class and friend function?

1 Answers  






What is constructor and destructor in c++?

0 Answers  


What's the best free c++ profiler for windows?

0 Answers  


Keyword mean in declaration?

0 Answers  


Is there finally in c++?

0 Answers  


What c++ library is string in?

0 Answers  


What is the difference between an external iterator and an internal iterator?

0 Answers  


What is virtual function? Explain with an example

0 Answers  


Categories