Home »
MCQs »
C++ MCQs
When we create an object of class using the malloc() function then the constructor gets called?
194. When we create an object of class using the malloc() function then the constructor gets called?
- True
- False
Answer: B) False
Explanation:
No, when we create an object of class using the malloc() function then the constructor will not call, the constructor gets called when we use the "new" operator for object creation.