Can someone please explain the use of exec functions when the input is given in command line? For example, if entered:
$ ./a.out ls -l
where a.out is the executable file. It would be great if you could share examples so that I can get clarification.
P.S. I've already gone through this thread, but I need clarification with command line inputs primarily.