This very simple example of exec() system call. Here, I am trying to call execlp() twice. But, I am not getting excepted output. It shows output only f
exec()
execlp()
execlp() replaces the current process image with a new process image. It does not return (unless there was an error starting the new process).
Therefore the second execlp() call is never reached.