Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 is rvalue?

0 Answers  


How are Structure passing and returning implemented by the compiler?

0 Answers  


Explain the difference between static and dynamic binding of functions?

0 Answers  


class A { public: void f(); protected: A() {} A(const A&){} }; Examine the class declaration shown above. Why are the default and copy constructors declared as protected? 1. To ensure that A cannot be created via new by a more derived class 2. To ensure that A cannot be copied 3. To ensure that A cannot be used as a base class except when public inheritance has been used 4. To ensure that A cannot be created/copied outside the inheritance chain 5. To ensure that A cannot be instantiated as a static variable

1 Answers  


Tell me an example where stacks are useful?

0 Answers  






How does c++ structure differ from c++ class?

0 Answers  


What is the use of setfill in c++?

0 Answers  


What are the different types of comments allowed in c++?

0 Answers  


When can you tell that a memory leak will occur?

1 Answers  


Describe protected access specifiers?

0 Answers  


What is the use of class in c++?

0 Answers  


Can a constructor be private?

0 Answers  






Categories