I want to know whether int main()
function be called a constructor function since it nearly works same as a constructor function of a class?
And if yes, then what is the class name it belongs to?
Edit: The reason why I think main() works nearly same as constructor function is that whenever we execute a programme the first thing which gets executed is the main function.. Similarly a constructor function executes first whenever we define a variable with data type as user defined class