There are three components needed to start programming using C language. They are Editor, Compiler and Interpreter
- Editor – Download and install the latest copy of Notepad++
- Compiler - Download and install latest version of MinGW
- Interpreter – Use command prompt or power shell
- With MinGW already installed and GCC ready to compile your program, it is time for your code to be converted into object code and then execution
- Open cmd or powershell and go the directory where the c file is stored.
- With the environment variable already set, use the command gcc someName.c -o someName
- Now just open the created exe file directly or using cmd. Voila!!! you got your first successful program running
No comments:
Post a Comment