Which of the following constructors are provided by the C++ compiler if not defined in a class ?
The correct answer is B) Default constructor
In C++, if a class does not explicitly define any constructor, the C++ compiler provides a default constructor. The default constructor is a constructor that takes no arguments (or has all its arguments having default values) and is automatically called when an object of the class is created without any explicit constructor call. The default constructor initializes the object's member variables to their default values.