how to execute c program in cmd code example
Example 1: compile c file in command prompt windows
cl program.c
Example 2: run a command in cmd with c
//C library statement
#include
//Driver program
int main(void)
{
//The C command to run a command in cmd
system("Your command here");
}
Example 3: execute c program in linuz
$ ./programName