why is the constructor Number() not being invoked when a number data type is initialized without any values ?
#include <iostream>
using namespace std;
class Number {
int n;
public:
Number() {
cout<< 0 << " ";
}
Number(int i): n(i) {
cout<< n << " ";
}
};
int main()
{
int i = 1;
Number n1();
Number *n2 = new Number(i++);
Number *n3;
new Number(i++);
return 0;
}