2808 explained code solutions for 75 technologies


cExecuting terminal commands in a console application


#include <stdlib.h>

int main(){
    system("echo foo");
    return 0;
}ctrl + c
include <stdlib.h>

standard C library that contains system functions

system("echo foo")

function receives the argument (echo foo in this case) and executes it on the terminal.