running c in command prompt code example
Example 1: How to run C program using command
gcc <file-name.c> -o <output-file-name>
Example 2: cmd command 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");
}