You have to make the program executable by compiling it, and then you can just give the path and program name in the script to execute it
For example, compile it as test by doing this
gcc myfile.c -o test
Now, the shell script should be like this :
/[path to test]/test
And you're done