system - Passing String as a command to the command Processor in C

 #include <stdlib.h>

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