What is the difference between the execlp and execvp system

What is the difference between the execlp and execvp system calls?

Solution

In the execlp we give command line arguments individually to the function. In the execvp command line arguments are passed to the functions as an array of pointers. Syntax for execlp: int execlp(char const *file, char const *arg0, ...); Syntax for execvp: int execvp(char const *file, char const *argv[]); In the execvp argument are in vector and in execlp arguments are in a list.
What is the difference between the execlp and execvp system calls?Solution In the execlp we give command line arguments individually to the function. In the exe

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site