Lesson 01·C Programming

Introduction to C

Learn Basic of C Programming language

What is C Language?

C Language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT & T's Bell Laboratories in 1972 in USA. It is also called as 'Procedure oriented programming language.'

Features of C Language

The C language has following numerous features as:

  • Easy to Learn
  • Structure Oriented
  • It produces Efficient programs
  • It can handle low-level activities
  • It can be compiled on a variety of computers

Facts about C

Key historical milestones and facts:

  • C was invented to write an operating system called UNIX.
  • C is a successor of B language which was introduced around 1970.
  • The language was formalized in 1988 by the American National Standard Institute (ANSI).
  • By 1973 UNIX OS almost totally written in C.
  • Today C is the most widely used System Programming Language.
  • Most of the state of the art software have been implemented using C.

Execution of Program

The general process of writing and running a C program:

1
Create a Program
Write source code in editor (.c file)
2
Compile Program
Compiler converts source to object code
3
Link Program to a Library
Linker combines object code with libraries (.exe)
4
Execute Program
Binary executed by operating system
1. Create a program:

Any Editor like Notepad, VS Code, etc. to create a C program. This file should be saved with '.c' extension only.

2. Compile program:

The next step is to compile the program. The code is compiled by using compiler converts executable code to binary code i.e. Object code.

3. Link program to a Library:

The object code linked to library that are needed for execution. The link is used to link the program with libraries. It creates a file with '.exe' extension.

4. Execution of Program:

The final executable file is then run by DOS command prompt or by any other software.