Well... C is a compiled language, sh (bash) is your shell, and it's an interpreter for shell scripts.
You need to use a compiler with your C program, usually gcc. Bash doesn't understand C code, only shell scripts.
I recommend you to get a good C book to sort out the basics first.
----
Just found your
thread about learning the C language. Read the
post by MTK358, there you'll find a very good and concise explanation that will help you compile your program.