Anyone please tell me where the main() function of the \'C\' language returns its value?
A general statement is: Function returns a value to the host environment.
So main() will return value to any program or shell which is hosting that piece of code or to the OS.
return value 0 is considered as successful execution