C Installation

The following list provides multiple ways of installing C.

After downloading and installating MinGW based compiler (in Windows), make sure you have added the path ~\MinGW\bin in the system environment variables. If you have downloaded Dev C++ or Code Blocks, then the previous step is not necessary. A prompt will come during the installation process to add the path automatically.

To check whether C has been installed successfully, type gcc in the power shell. To compile a program type gcc program_name.c and hit enter. To run a program type ./a.out (linux/unix) or ./a.exe (windows) and hit enter.

In IDEs you can compile and run your code using built-in buttons or shortcut keys, example F11 in Dev C++.


C Programming

Remember to follow community guidelines and don't go off topic.