INTRODUCTION TO C

HISTORY  OF  C  LANGUAGE


C is developed by Dennis Ritchie in the year 1972 at Bell Laboratories(USA).

• It is a General- purpose, Structured, Machine Independent, Simple and Flexible programming language.

• Initially, C language was developed to be used in UNIX operating system. It inherits many features of previous languages such as B and BCPL.

In Memory of Dennis Ritchie. Remembering The Creator of Steve Jobs… | by  Casper Beyer | Commit Log | Medium


PROGRAM  DEVELOPMENT  STEPS

  •  The program development steps or phases that we follow a sequence of steps to develop a program in any programming language.
  •  Generally, the program development steps contains 6 phases, they      are as follows 
  • Requirements
  •  Analysis
  •  Design
  •  Coding
  •  Testing
  •  Maintenance

FEATURES  OF  C  LANGUAGE

  • Simple
  •  Machine Independent or Portable
  •  Mid-level programming language
  •  Structured programming language 
  •  Rich Library
  •  Memory Management
  •  Fast Speed
  •  Pointers
  •  Recursion
  •  Extensible 

STRUCTURE  OF  C  PROGRAM

Documentation – comments about program
Link- instructions to compiler
Definition- defines all symbolic constants
Global declaration- variable that is frequently used Main()-

Declaration: all variables

Execution: programming Subprogram- user defined functions 

Explain Basic Structure of C Program with Example


EXECUTION  OF  C  PROGRAM

Execution flow of C program - TAE


EXAMPLE :

#include <stdio.h>

#include <conio.h>

int main() {

print("hello world"); // displaying as output

getch();

return();

}

EXECUTION OF C PROGRAM

EXECUTION OF C PROGRAM

Comments