how to open and run a c file in c code example Example: How to run C program using command gcc <file-name.c> -o <output-file-name>