Break yourself and re-learn. Prepare for C's pilot ...
1. Windows does not support the GNU GCC itself, but some programming software is available for free download and installation.
The video below recommends Dev C + +, an open source programming software that comes with a mingw compiler that can be used on either 32-bit or 64-bit Windows.
The website of Dev C + + is: http://sourceforge.net/projects/orwelldevcpp/.
Please be sure to form a good habit, download from the software's official website.
2. Mac OS is based on BSD Unix, so you can use GCC directly. However, Mac OS does not install programming software such as GCC by default. So we're going to install Apple's own prepared GCC programming environment on Mac OS.
In the case of a newer Mac system, the following will be prompted after the terminal enters GCC:
Xcrun:error:invalid Active developer Path (/library/developer/commandlinetools), missing xcrun at:/library/developer/ Commandlinetools/usr/bin/xcrun
At this point in the terminal run Xcode-select--install This statement, you can (install the full version of Xcode is necessary). If you do not like Xcode too big, then directly according to the prompts to install GCC, and then directly on the terminal to the code.
Specific steps: Open terminal, enter "CD desktop", and then enter "Emacs test.c", you can start to write. After the completion of the control + X, control + S, control + Z, three sets of shortcut keys to save the exit. Finally enter "make test", compile successfully, and finally enter "./test", you can run it.
Start C's new journey on your Mac