Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Introduction to c

160 views

Published on

Published in: Engineering
  • Be the first to comment

  • Be the first to like this

Introduction to c

  1. 1.  C language is very easy and a powerful computer programming language bbecause it is very small and structured.  C language is a Middle level language i.e. suitable for systems programming.  It is a case sensitive language.  It is highly portable language.  C is a procedural or sequential language.  It is easy to learn and understand.  It is a small language
  2. 2.  C language was invented by DENNIS RITCHIE at Bell Laboratories in between 1969 1nd 1973.  C language was standardized by ANSI in 1989 and known as ANSI C.
  3. 3.  Portability- C is a machine independent and highly portable language.  Robustness- C has a set of built in functions and operators.  Easy to understand and learn as it has only 32 keywords.  Fast and Efficient  Flexible- It is not only for system but also for embedded system commercial data processing.  Integration with UNIX.  C has a large library of functions.
  4. 4.  Complexity- Difficulty in solving complex problems.  Difficult to debug.  Difficult to modify.  Error-prone  Diffficult to write large programs.
  5. 5.  Character set  Data Types  Constants  Keywords  Variables  Grammer(Syntax & semantics
  6. 6.  Documentation Section (optional)  Link Section (optional)  Defining Section (optional)  Global Declaration Section (optional)  Main Function Section ( ) { Declaration part Executable part }  Subprogram Section (optional)  Function 1  Function 2  Function n
  7. 7. /* This is a sample C program. */ #include <stdio.h> #include <conio.h> main ( ) { clrscr ( ); printf (“Hello n”); getch ( ); }
  8. 8. C program is executed in 3 phases:  Create a source code file. [Empty file(input) – Source Code file(output)]  Compilation [Source code file(input) – object file(output)]  Linking [Object File(input) – Executable File (output)]

×