How do you execute c program in terminal?

Answer:
If you have it compiled and linked, then simply:
$ ./myprogram

if you haven't, then compile and link it first:
$ gcc -g -W -Wall -pedantic -o myprogram myprogram.c (other sources, objects, libraries)
$ ./myprogram
First answer by NevemTeve. Last edit by NevemTeve. Contributor trust: 172 Question popularity: 16 [recommend question].