What and all can a compiler provides by default?
Answers were Sorted based on User's Feedback
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 |
Answer / dee
default constructor, destructor, default copy constructor,
assignment operator.
| Is This Answer Correct ? | 13 Yes | 0 No |
Answer / sandy
Also operator "&"
class Test {};
int main()
{
Test t;
Test *ptr = &t;
return 0;
}
| Is This Answer Correct ? | 4 Yes | 5 No |
what are Operators and explain with an example?
How the virtual functions maintain the call up?
State two differences between C and C++.
Write a struct time where integer m, h, s are its members?
What is function overriding in c++?
How do you print for example the integers 3,2,1,5,4 in a binary tree within the console in format where it looks like an actual binary tree?
Which is the best c++ software?
How do you traverse a btree in backward in-order?
What is the use of class in c++?
Does c++ have finally?
How to implement flags?
What is the difference between structure and class?