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

Write the program for fibonacci in c++?

20 Answers   TATA, Wipro,


How many lines of code you have written for a single program?

4 Answers   BoA,


Write a function which takes a character array as input and reverses it in place.

2 Answers   Lehman Brothers, Vision Infotech,


write the programme that convert a interger to biniry number

1 Answers   Amazon,


What is the output of the following 3D Array int arr[3][2][2]={1,2,3,4,5,6,7,8,9,10,11,12}; what is the output for arr[2][1][0]?

5 Answers   HCL, Integra, IPMC, ORG,






What are advantages of C++ when comparing with C?

18 Answers   HP, iGate, TCS,


how to create window program in c++.please explain.

1 Answers   Microsoft,


Given the following function definition: int doit(int &x, int y, int &z) { x = 3*x; y = y + 5; z = x+y; return z - 4; } int a = 5, b = 7, c = 9, d = 11; d = doit(a,b,c);

2 Answers  


Difference between shift left and shift right?

1 Answers   Symphony,


what is importance of data sturture in a programming language?

22 Answers   L&T, TCS, Wipro,


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

4 Answers  


If there are 1 to 100 Numbers in array of 101 elements. Which is the easy way to find repeated number?

2 Answers   Persistent,






Categories