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 |
Can you use the function fprintf() to display the output on the screen?
Explain deep copy and a shallow copy?
What is the history of c++?
write a program to add two numbers without using an arithmetic operator.
Write a C++ Program to check whether a number is prime number or not?
What is the role of copy constructor in copying of thrown objects?
What is the benefit of encapsulation?
Write about the access privileges in c++ and also mention about its default access level?
Write a program and call it sortcheck.cpp which receives 10 numbers from input and checks whether these numbers are in ascending order or not. You are not allowed to use arrays. You should not define more than three variables
What does ctime() do?
Explain the uses oof nested class?
What will i and j equal after the code below is executed? Explain your answer.