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 use the function fprintf() to display the output on the screen?

0 Answers  


Explain deep copy and a shallow copy?

0 Answers  


What is the history of c++?

0 Answers  


write a program to add two numbers without using an arithmetic operator.

1 Answers   NIIT,


Write a C++ Program to check whether a number is prime number or not?

0 Answers   IBS,






What is the role of copy constructor in copying of thrown objects?

0 Answers  


What is the benefit of encapsulation?

0 Answers  


Write about the access privileges in c++ and also mention about its default access level?

0 Answers  


Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables

2 Answers   BirlaSoft, Crayonz,


What does ctime() do?

0 Answers  


Explain the uses oof nested class?

0 Answers  


What will i and j equal after the code below is executed? Explain your answer.

1 Answers  


Categories