how to run c main in command line visual studio code example
Example: how to run c program from visual studio terminal
Fire up the terminal from VS code
Use the command "gcc filename.c" to compile the program
Use the command ".\a.exe" to run the program from the terminal
P.S. Remove "" before exceuting