Answers for "how to run terminal commands in c"

C
0

terminal compile and run c

// compile the code
gcc <file-name.c> -o <output-file-name>

// run the compiled code
./<output-file-name>
Posted by: Guest on March-19-2022
2

run a command in cmd with c

//C library statement
#include <stdlib.h>

//Driver program
int main(void)
{
	//The C command to run a command in cmd
	system("Your command here");
}
Posted by: Guest on December-15-2020

Code answers related to "how to run terminal commands in c"

Code answers related to "C"

Browse Popular Code Answers by Language