99. Constructors-I

Question.1

A GPIO class has two constructors:

class GPIO {
   int pin;
public:
   GPIO() : pin(0) {}
   GPIO(int p) : pin(p) {}
};

GPIO led;
GPIO motor(9);

Which constructor is called for each?

Need Help? Refer to the Quick Guide below

Select Answer