I have one doubt about the main function. As per the function
rule every function returns a value either what ever the value may be either it will be a value or a NULL value. what about the
main function. what it returns how it returns and where it returns.
I have not cleared with the doubt. please help me.
thanks for helping me.
As far as i know the function main() should return the status of it's termination to the OS, that is to say whether it failed or succeeded in doing what it set out to do. 0 being success and any non-zero number being failure, it's common to use 1 for this purpose.
I personally use main() as follows:
/* source code */