You actually don't run a C file, you are trying to compile a C program. gcc is the GNU C compiler and it's not installed by default. You can use your graphical software manager (Add/Remove Software) to install it or use the following command from a terminal (as root):
yum groupinstall "Development Tools"
this will install all the basic software to build applications from source (gcc included).