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

C++ program output? Explain output of this program. #include <iostream> using std::cout; using std::cin; int main() {   cout<<cout<<' ';   cout<<cin;   return 0; } It prints some address in hexadecimal. what is it?

1 Answers  


what Is DCS ? what i will get benefit when i did?

0 Answers  


What are advantages and disadvantages of Design patterns?

7 Answers   IBM, Vodafone,


Write a C++ program to sort digits of all the 4 digit number and display the sorted 4 digit number

1 Answers   TCS, TATA,


How can you quickly find the number of elements stored in a a) static array b) dynamic array ?

5 Answers   Lucent,






How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?

0 Answers   Yahoo,


Write any small program that will compile in "C" but not in "C++"

10 Answers   Honeywell,


Profiler in projects?

2 Answers   Symphony,


Difference between Overloading and Overriding?

35 Answers   IBM, NIIT, GameLoft, HP, Appnetix Techno, Rohde and Schwarz,


What is the difference between Pointer and a Reference? When you would use them?

4 Answers   Wipro,


Can we declare destructor as static? Explain?

3 Answers  


sizeof - is it a function or operator?

6 Answers   Honeywell,






Categories