return 0 is used when a funtion has return type of int n we do not return any variable , where as exit(0) is used to terminate the program abruptly, it can take values in miliseconds.
return: control return to a function.
exit():Use to terminate a process.