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

Can you pass an array to a function in c++?

0 Answers  


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

0 Answers  


What is the Difference between "vector" and "array"?

15 Answers   Wipro, TCS, Covansys, Gambit,


What is object file? How can you access object file?

0 Answers  


Which command properly allocates memory a) char *a=new char[20]; b) char a=new char[20]; c) char a=new char(20.0);

0 Answers  






How can a struct in c++ differs from a struct in c?

0 Answers  


What are c++ storage classes?

0 Answers  


When is a template better solution than a base class??

2 Answers   emc2,


What is the use of endl in c++?

0 Answers  


When there is a global variable and local variable with the same name, how will you access the global variable?

0 Answers  


What is a "Copy Constructor"?

1 Answers  


Differentiate between a pointer and a reference with respect to c++.

0 Answers  






Categories