Environmental Setup
If you need to set up your environment for C language, you need the accompanying two programming tools accessible on your computer: Text Editor and the C Compiler.
Text Editor
This will be utilized to type your program. Instances of barely any editors include Windows Notepad, OS Edit command, Brief, Epsilon, EMACS, and vim or vi. The name and form of text editors can vary on various operating systems. For instance, Notepad will be utilized on Windows, and vim or vi can be utilized on windows, Linux or UNIX.
The files you create with your editor are called the file documents and they contain the program source codes. The source records for C programs are typically named with the extension ".c". Prior to beginning your programming, ensure you have one text editor in place and you have enough experience to compose a computer program, spare it in a record, compile it lastly execute it.
The C Compiler
The source code written in the source document is a readable source for your program. It should be compiled into machine language with the goal that your CPU can actually execute the program according to the instructions given.
The compiler compiles the source codes into the last executable programs. The most utilized and the free accessible compiler is the GNU C/C++ compiler.
Executing a C Program
Executing a program written in C involves a series of steps. these are:
- Creating the program
- Compiling the program
- Linking the program with functions that are needed from the C library
- Executing the program