Sorry I was unable to find any keyword to search for this problem. My code is below
#include <iostream>
using namespace std;
class Name {
public:
Name() {
cout << "Asif";
}
};
int main() {
Name obj(); // why Constructor not calling here?
return 0;
}
If it's not calling the constructor then what process is running in this code?