Anyone please tell me where the main() function of the \'C\' language returns its value?
The return value if the main() function is used as the exit status code of the program.
In a shell you can get the exit status of a program using $?, example:
./prog exit_status=$?