How to compile and run C programs in Terminal on Mac OS. IMPORTANT: Since our file path is set to the user's home folder by default, these programs will be compiled and saved in your home folder. So you can either change your directory or delete/move the programs that are saved in your home folder.
...
https://www.youtube.com/watch?v=0xn2ZE3Y90A