title: How to use execv system call in linux?
body: <p>I am writing a program using execl to execute my exe file which is testing and it's work very well and display the output in the Linux CLI. But I have not idea how to change the execl to execv, although I know both of the system call will give the same value. I am confused with the array argument for execv system call </p>
  
  <p>This is my execl sample program</p>
  
  <pre><code>int main(void)
  {
     int childpid;
     if((childpid = fork()) == -1 )
  {
     perror("can't fork");
     exit(1);
  }
   else if(childpid == 0)
  {
    execl("./testing","","",(char *)0);
    exit(0);
  }
  else
  {
  printf("finish");
  exit(0);
  }
  }
  </code></pre>
  
  <p>can I know how to change the execl to execv. What I read from online, we must set the file path for my exe file and the argument of array . What type of argument need to set for the array in order to ask the program to execute the testing exe file ? 
  <a href="https://support.sas.com/documentation/onlinedoc/sasc/doc/lr2/execv.htm" rel="noreferrer">https://support.sas.com/documentation/onlinedoc/sasc/doc/lr2/execv.htm</a><br><br>Is it the link consist of the thing I want ? But what I read from it ,the command is request the list the file,not execute the file. Correct me I make any mistake  </p>