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 do you know about friend class and friend function?
How many characters are recognized by ANSI C++?
What is the difference between a declaration and a definition?
Find the second maximum in an array?
give me some class & objects examples?
What language does google use?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
If we declare two macro with the same identifier without doing undef the first, what will be the result? eg: #define MAX_SIZE 100 #define MAX_SIZE 200 int table1[MAX_SIZE];
What are the different operators in C++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
what you know about c++?
Tell me an example where stacks are useful?