Is the following code correct:
char * cmd="ls -l"; /* Unix command used for listing */
char * spCmd;
spCmd = strtok(cmd , " ");/* it divides the cmd in to tokens */
execvp(spCmd[0] , spCmd);
output of this code to execute command that is written in cmd ?
:?: