return
is a statement that returns control back to the calling
function.
exit
is a system call which terminates the current process i.e the
currently executing program.
In main()
the return 0;
and exit(0);
perform the same thing.
NOTE: you have to include #include
.