int execl(const char* path, const char* arg0,....const char* argn,(char*)0)
Here the path is the path of the command we want to run, arg0 is the command name itself and arg1...argn are the further arguments you can provide to the command, (char*)0 is the NULL value as it indicates the end of argument list. For e.g. if we run execl("/bin/ls","ls","-l",(char*)0), then /bin/ls is the pathname, ls is the arg0 and -l is the arg1 while (char*)0 is the NULL termination. This comman changes the process image from the ongoing process to "ls -l"