system: passes the string as a command to the command processor : system « stdlib.h « C / ANSI-C






system: passes the string as a command to the command processor


    

//Header file:     #include <stdlib.h>  
//Declaration:     int system(const char *str); 
//Return:          zero on success or nonzero on error. 


  #include <stdlib.h>

  int main(void)
  {
    printf("%s",system("dir"));
  }

           
       








Related examples in the same category