The advantage that execvp has over execv is that we don't need to specify the path in it, we only need to specify the filename and the array of the argument strings.
The execvp function is similar to execv , except that it searches the directories listed in the PATH environment variable (Standard Environment Variables) to find the full file name of a file from filename if filename does not contain a slash.
The main advantage of execvp() over execv() is that execvp() automatically searches for the executable in the system path directories . with execv(), you have to give the exact path to the executable yourself.