Compile foo.c with
tcc foo.c
This will produce foo.exe, if there are no errors in your code.
You can run foo.exe with
./foo.exe
If necessary, kill foo.exe by pressing CTRL-C in the shell.