Friday, June 28, 2013

Basics of C Programming

For a programming language, we generally write the program in the high level language i.e., by using alphabets, numbers and symbols. But computer understands very low level language. Hence a program must undergo many transformations to convert into machine level language.

For a C program, 
  • User writes his thoughts in the form of program, called as Source File.
  • This file is converted by the compiler into an object file.
  • This object file is then linked with a linker and gets converted into Executable program.


 This can be better explained with the help of following steps.


Generally we don't need to perform the tasks individually, Most of the C compilers use wrapper programs that automatically does all the work. Some systems has also provided the IDE( Integrated Development Environment) which itself contains an editor, compiler, linker, project manager, debugger and many more. Both Borland and Microsoft provide IDEs with their compilers. 

Before writing a Program

Before you write a program, you need to keep in mind the following things.
  • Objective of the program
  • Methods we are going to use in the program
  • Create the program
  • Run the program to see results