INTRODUCTION OF 'C' LANGUAGE

Program : A program is a set of instructions.A C program is required to be compiled and linked before execution

Source code (.c) -----
Compilation--> Object code (.obj)

C is what is called a compiled language. This means that once you write your C program,
you must run at through a C compiler to turn your program into an executable that the computer can run (execute). The C program is the human-readable form,while the executable that comes out of the compiler is the machine-readable and executable form.
What this means is that to write and run a C program , you must have access to a C compiler.

IMPORTANT CHARACTERISTICS OF C PROGRAM

1. C is a case sensitive Programming Language.
2. Every C program must be saved in a file having extension ".c".
3. Every C program must have a main().
4. A C language statement ends with a semicolon(;).

STRUCTURE OF A C PROGRAM

Header File
macros

Global variable

main() <------Parenthesis { <----------------------------Start main function. Program statements } <----------------------------End main function


The program is compiled with ctrl+F9
For output Alt+F5