I have an example c program..
which I have loaded with my text editor..
A text file "c program" cannot be run.
Example : example.c → you will have to compile it.
gcc example.c -o example
Use it : 1) cd <path-to-folder-with-example>/example
Or : # cp example /usr/local/bin/
.. Then it is in your PATH.