how to compile c code on cmd code example
Example 1: How to run C program using command
gcc <file-name.c> -o <output-file-name>
Example 2: compile c file in command prompt windows
cl program.c
gcc <file-name.c> -o <output-file-name>
cl program.c