SlideShare a Scribd company logo
2
Most read
3
Most read
10
Most read
Overview of C
History of Programming

• The root of all modern languages is ALGOL (introduce in
  1960s).
• ALGOL uses a structure programming.
• ALGOL is popular in Europe
• In 1967, Martin Richards developed a language called BCPL
  (Basic Combined Programming Language)
• Primarily BCPL is developed for system software
• In 1970, Ken Thompson created a new language called B
• B is created for UNIX os at Bell Laboratories.
• Both BCPL and B were “typeless” languages
History of C
• C was evolved from ALGOL, BCPL and B.
• C was developed by Dennis Ritchie at the Bell Laboratories
  in 1972.
• Added new features and concepts like “data types”.
• It was developed along with the UNIX operating system.
• It was strongly integrated with the UNIX operating system.
• In 1983 American National Standards Institute (ANSI)
  appointed a technical committee to define a standard for C.
  The committee approved a version of C in December 1989
  which is now known as ANSI C.
• In 1990 International Standards Organization (ISO) has
  approved C and this version of C is referred to as C89.
History of C

1960      ALGOL         International Group

1967       BCPL         Martin Richards

1970         B          Ken Thompson

1972    Traditional C   Dennis Ritchie

1978       K&R C        Kernighan and Ritchie

1983      ANSI C        ANSI Committee

1990     ANSI/ISO C     ISO Committee

1999        C99         Standardization Committee
Importance of C
• Rich set of built-in functions
• Operators can be used to write any complex program.
• The C compiler combines the capabilities of an assembly
  language with the features of a high-level language.
• It is well sited for writing both system software and
  business packages.
• Due to variety of data types and powerful operators
  programs written in C are efficient and fast.
• There are only 32 keywords in C and its strength lies in its
  built in functions.
• C is highly portable.
Importance of C

• Ability to extend itself.
• C is a Structured Programming Language (requiring
  the user to think of a problems in terms of function
  modules or blocks).
First C program
    #include<stdio.h>           //Headerfile
    main()                      //main function
    {
           /*…….printing begins……..*/
           printf(“I see, I remember”);
           /*……printing end…………*/
    }
----------------------------------------------------------------------------------------------
    -
• Stdio.h is a header file which is included in our program by writing
    #include<stdio.h> in first line of program.
• main() is function where execution begins.
• Every program must have exactly one main function.
• “{” opening brace & “}” closing brace.
• printf(“ ”); is the only executable instruction.
• C is case sensitive.
Format of simple C program
main()         //function name
{                      //Starting of program
    ---
    ---                //Program statements
    ---
}                      //End of program
----------------------------------------------------------------------------------------------
    The main() is a part of every C program. C permits different forms of
    main statements
• main()
• int main()
• void main()
• main(void)
• void main(void)
• int main(void)
Executing a ‘C’ Program

1.   Creating the program
2.   Compiling the program
3.   Linking the program with functions that are
     needed from the C library
4.   Executing the program
Compilation and Execution in C

          Compilation
 Source     Language
  Code      Compiler    EXE




            Execution
              Native
              Code
Thank You



   Questions
        &
General Discussion

More Related Content

What's hot (20)

PPT
Variables in C Programming
programming9
 
PPTX
Forloop
Dipen Vasoya
 
PPSX
Algorithm and flowchart
Sachin Goyani
 
PPTX
Programming flowcharts for C Language
Aryan Ajmer
 
PPTX
While , For , Do-While Loop
Abhishek Choksi
 
PPTX
Types of Programming Errors
Neha Sharma
 
PPTX
C++ presentation
SudhanshuVijay3
 
PPT
Debugging
Indu Sharma Bhardwaj
 
PPT
Lecture 5 - Structured Programming Language
Md. Imran Hossain Showrov
 
PPT
History of c
Shipat Bhuiya
 
PPTX
Control Flow Statements
Tarun Sharma
 
PPSX
Break and continue
Frijo Francis
 
PPTX
Static Data Members and Member Functions
MOHIT AGARWAL
 
PPT
Introduction to c programming
ABHISHEK fulwadhwa
 
PPTX
Event Handling in java
Google
 
PPT
Visual basic
umesh patil
 
PPTX
C tokens
Manu1325
 
PPTX
Programming in c Arrays
janani thirupathi
 
PPT
Looping statements in Java
Jin Castor
 
Variables in C Programming
programming9
 
Forloop
Dipen Vasoya
 
Algorithm and flowchart
Sachin Goyani
 
Programming flowcharts for C Language
Aryan Ajmer
 
While , For , Do-While Loop
Abhishek Choksi
 
Types of Programming Errors
Neha Sharma
 
C++ presentation
SudhanshuVijay3
 
Lecture 5 - Structured Programming Language
Md. Imran Hossain Showrov
 
History of c
Shipat Bhuiya
 
Control Flow Statements
Tarun Sharma
 
Break and continue
Frijo Francis
 
Static Data Members and Member Functions
MOHIT AGARWAL
 
Introduction to c programming
ABHISHEK fulwadhwa
 
Event Handling in java
Google
 
Visual basic
umesh patil
 
C tokens
Manu1325
 
Programming in c Arrays
janani thirupathi
 
Looping statements in Java
Jin Castor
 

Viewers also liked (19)

PPSX
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi
 
PPTX
An Overview of Programming C
Nishargo Nigar
 
PPT
C PROGRAMMING
Stalongiles Philip
 
PPTX
Introduction to c programming
Sivant Kolhe
 
PPTX
Introduction to c programming
Alpana Gupta
 
PPTX
E-examination Engine
Alpana Gupta
 
PPT
Introduction to programming with c,
Hossain Md Shakhawat
 
PDF
Lecture 2 history_of_c
eShikshak
 
PPTX
uses of computer ppt
anshu verma
 
PPTX
Game project Final presentation
gemmalunney
 
DOCX
Final project report of a game
Nadia Nahar
 
PPT
Computer History
Crystal Cunningham
 
PPTX
Introduction to Programming Languages
educationfront
 
PPTX
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
PPTX
The five generations of computers presentation
Swarnima Tiwari
 
PPT
Basics of C programming
avikdhupar
 
PPTX
C language ppt
Ğäùråv Júñêjå
 
PDF
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
PPTX
Uses of computer
a2zeenice
 
INTRODUCTION TO C PROGRAMMING
Abhishek Dwivedi
 
An Overview of Programming C
Nishargo Nigar
 
C PROGRAMMING
Stalongiles Philip
 
Introduction to c programming
Sivant Kolhe
 
Introduction to c programming
Alpana Gupta
 
E-examination Engine
Alpana Gupta
 
Introduction to programming with c,
Hossain Md Shakhawat
 
Lecture 2 history_of_c
eShikshak
 
uses of computer ppt
anshu verma
 
Game project Final presentation
gemmalunney
 
Final project report of a game
Nadia Nahar
 
Computer History
Crystal Cunningham
 
Introduction to Programming Languages
educationfront
 
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
The five generations of computers presentation
Swarnima Tiwari
 
Basics of C programming
avikdhupar
 
C language ppt
Ğäùråv Júñêjå
 
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
Uses of computer
a2zeenice
 
Ad

Similar to 1. over view and history of c (20)

PPTX
PROGRAMMING IN C - SARASWATHI RAMALINGAM
SaraswathiRamalingam
 
PPTX
Introduction to C Programming
Anandhasilambarasan D
 
PPTX
C language
marar hina
 
PPTX
Basics of C Lecture 2[16097].pptx
CoolGamer16
 
PPTX
Unit-1_c.pptx you from the heart of the day revision
MohammedAnas871930
 
PDF
Basics of C Prog Lang.pdf
KalighatOkira
 
PPTX
Introduction to c language
BAKRANIYA KALPESH
 
PPTX
Introduction to C programming
MalikaJoya
 
DOCX
C programming language Reference Note
Chetan Thapa Magar
 
PDF
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Batra Centre
 
PPTX
chapter 1.pptx
SeethaDinesh
 
PDF
Introduction of c language
farishah
 
DOCX
Chapter 3(1)
TejaswiB4
 
PDF
Introduction to C programming
Kathmandu University
 
PPTX
C programming
Rohan Gajre
 
PPTX
CSE_1201_Lecture_1_Introduction_to_Programming_0fd134f8149173dfa0821f1575f733...
DrmagedAlazony
 
PPTX
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
PPTX
C language unit-1
Malikireddy Bramhananda Reddy
 
PPTX
C languaGE UNIT-1
Malikireddy Bramhananda Reddy
 
PPTX
Best Computer Institute in Pitampura, Delhi, Learn from Industry Experts.
Veridical Technologies
 
PROGRAMMING IN C - SARASWATHI RAMALINGAM
SaraswathiRamalingam
 
Introduction to C Programming
Anandhasilambarasan D
 
C language
marar hina
 
Basics of C Lecture 2[16097].pptx
CoolGamer16
 
Unit-1_c.pptx you from the heart of the day revision
MohammedAnas871930
 
Basics of C Prog Lang.pdf
KalighatOkira
 
Introduction to c language
BAKRANIYA KALPESH
 
Introduction to C programming
MalikaJoya
 
C programming language Reference Note
Chetan Thapa Magar
 
C programming notes BATRACOMPUTER CENTRE IN Ambala CANTT
Batra Centre
 
chapter 1.pptx
SeethaDinesh
 
Introduction of c language
farishah
 
Chapter 3(1)
TejaswiB4
 
Introduction to C programming
Kathmandu University
 
C programming
Rohan Gajre
 
CSE_1201_Lecture_1_Introduction_to_Programming_0fd134f8149173dfa0821f1575f733...
DrmagedAlazony
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
Best Computer Institute in Pitampura, Delhi, Learn from Industry Experts.
Veridical Technologies
 
Ad

1. over view and history of c

  • 2. History of Programming • The root of all modern languages is ALGOL (introduce in 1960s). • ALGOL uses a structure programming. • ALGOL is popular in Europe • In 1967, Martin Richards developed a language called BCPL (Basic Combined Programming Language) • Primarily BCPL is developed for system software • In 1970, Ken Thompson created a new language called B • B is created for UNIX os at Bell Laboratories. • Both BCPL and B were “typeless” languages
  • 3. History of C • C was evolved from ALGOL, BCPL and B. • C was developed by Dennis Ritchie at the Bell Laboratories in 1972. • Added new features and concepts like “data types”. • It was developed along with the UNIX operating system. • It was strongly integrated with the UNIX operating system. • In 1983 American National Standards Institute (ANSI) appointed a technical committee to define a standard for C. The committee approved a version of C in December 1989 which is now known as ANSI C. • In 1990 International Standards Organization (ISO) has approved C and this version of C is referred to as C89.
  • 4. History of C 1960 ALGOL International Group 1967 BCPL Martin Richards 1970 B Ken Thompson 1972 Traditional C Dennis Ritchie 1978 K&R C Kernighan and Ritchie 1983 ANSI C ANSI Committee 1990 ANSI/ISO C ISO Committee 1999 C99 Standardization Committee
  • 5. Importance of C • Rich set of built-in functions • Operators can be used to write any complex program. • The C compiler combines the capabilities of an assembly language with the features of a high-level language. • It is well sited for writing both system software and business packages. • Due to variety of data types and powerful operators programs written in C are efficient and fast. • There are only 32 keywords in C and its strength lies in its built in functions. • C is highly portable.
  • 6. Importance of C • Ability to extend itself. • C is a Structured Programming Language (requiring the user to think of a problems in terms of function modules or blocks).
  • 7. First C program #include<stdio.h> //Headerfile main() //main function { /*…….printing begins……..*/ printf(“I see, I remember”); /*……printing end…………*/ } ---------------------------------------------------------------------------------------------- - • Stdio.h is a header file which is included in our program by writing #include<stdio.h> in first line of program. • main() is function where execution begins. • Every program must have exactly one main function. • “{” opening brace & “}” closing brace. • printf(“ ”); is the only executable instruction. • C is case sensitive.
  • 8. Format of simple C program main() //function name { //Starting of program --- --- //Program statements --- } //End of program ---------------------------------------------------------------------------------------------- The main() is a part of every C program. C permits different forms of main statements • main() • int main() • void main() • main(void) • void main(void) • int main(void)
  • 9. Executing a ‘C’ Program 1. Creating the program 2. Compiling the program 3. Linking the program with functions that are needed from the C library 4. Executing the program
  • 10. Compilation and Execution in C Compilation Source Language Code Compiler EXE Execution Native Code
  • 11. Thank You Questions & General Discussion

Editor's Notes

  • #11: The Common Language Runtime Compilation and Execution The above diagram illustrates the process used to compile and execute managed code, or code that uses the CLR. Source code written in Visual C#, Visual Basic .NET or another language that targets the CLR is first transformed into MSIL by the appropriate language compiler. Before execution, this MSIL is compiled by the Just-in-Time (JIT) complier into native code for the processor on which the code will operate. The default is to JIT compile each method when it is first called, but it is also possible to “preJIT” MSIL code to native code at assembly install-time. With this option, all methods are compiled before the application is loaded so as to avoid the overhead of JIT compilation on each initial method call. You use the Native Image Generator (Ngen.exe) to create a native image from a managed assembly and install it into the native image cache. Once the code is compiled and cached, the CLR does not need to re-compile the MSIL code until the assembly is updated, the Just-In-Time compiled code is removed from the cache, or the machine is restarted. A point worth noting is that all languages targeting the CLR should exhibit a similar performance. While some compilers may produce better MSIL code, large variations in execution speed are unlikely.