C++
Programming and Technical
Programming
Technical
Suppose that the foo class does not have an
overloaded assignment operator. What happens
when an assignment a=b; is given for two foo
objects?
a) The automatic assignment operator is used
b) The copy constructor is used
c) Compiler error
d) Run-time error
Read Solution (Total 4)
-
- the automatic assigment oprator is used
- 8 years agoHelpfull: Yes(0) No(1)
- b) The copy constructor is used
- 8 years agoHelpfull: Yes(0) No(1)
- It generates a compile error .
- 7 years agoHelpfull: Yes(0) No(1)
- b) The copy constructor is used
- 6 years agoHelpfull: Yes(0) No(0)
C++ Other Question