尊敬的 微信汇率:1円 ≈ 0.046166 元 支付宝汇率:1円 ≈ 0.046257元 [退出登录]
SlideShare a Scribd company logo
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

History of c++
History of c++ History of c++
History of c++
Ihsan Wassan
 
Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
David Livingston J
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
srmohan06
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
Mansi Tyagi
 
C presentation
C presentationC presentation
C tokens
C tokensC tokens
C tokens
Manu1325
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
Sikder Tahsin Al-Amin
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
Prof. Dr. K. Adisesha
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Manoj Tyagi
 
Introduction to c language | History of C language
Introduction to c language | History of C languageIntroduction to c language | History of C language
Introduction to c language | History of C language
simplidigital
 
C presentation book
C presentation bookC presentation book
C presentation book
krunal1210
 
Character set of c
Character set of cCharacter set of c
Character set of c
Chandrapriya Rediex
 
C language ppt
C language pptC language ppt
C language ppt
Ğäùråv Júñêjå
 
Programming languages
Programming languagesProgramming languages
Programming languages
Akash Varaiya
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C Basics
Bharat Kalia
 
C programming
C programmingC programming
Programming in c
Programming in cProgramming in c
Programming in c
ankitjain851
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
temkin abdlkader
 
Data types in C
Data types in CData types in C
Data types in C
Tarun Sharma
 
Call by value or call by reference in C++
Call by value or call by reference in C++Call by value or call by reference in C++
Call by value or call by reference in C++
Sachin Yadav
 

What's hot (20)

History of c++
History of c++ History of c++
History of c++
 
Structure of a C program
Structure of a C programStructure of a C program
Structure of a C program
 
Features of c language 1
Features of c language 1Features of c language 1
Features of c language 1
 
Notes of c programming 1st unit BCA I SEM
Notes of c programming  1st unit BCA I SEMNotes of c programming  1st unit BCA I SEM
Notes of c programming 1st unit BCA I SEM
 
C presentation
C presentationC presentation
C presentation
 
C tokens
C tokensC tokens
C tokens
 
Introduction to C++
Introduction to C++Introduction to C++
Introduction to C++
 
Introduction to c++ ppt 1
Introduction to c++ ppt 1Introduction to c++ ppt 1
Introduction to c++ ppt 1
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to c language | History of C language
Introduction to c language | History of C languageIntroduction to c language | History of C language
Introduction to c language | History of C language
 
C presentation book
C presentation bookC presentation book
C presentation book
 
Character set of c
Character set of cCharacter set of c
Character set of c
 
C language ppt
C language pptC language ppt
C language ppt
 
Programming languages
Programming languagesProgramming languages
Programming languages
 
Programming in C Basics
Programming in C BasicsProgramming in C Basics
Programming in C Basics
 
C programming
C programmingC programming
C programming
 
Programming in c
Programming in cProgramming in c
Programming in c
 
Intro to c++
Intro to c++Intro to c++
Intro to c++
 
Data types in C
Data types in CData types in C
Data types in C
 
Call by value or call by reference in C++
Call by value or call by reference in C++Call by value or call by reference in C++
Call by value or call by reference in C++
 

Viewers also liked

An Overview of Programming C
An Overview of Programming CAn Overview of Programming C
An Overview of Programming C
Nishargo Nigar
 
C PROGRAMMING
C PROGRAMMINGC PROGRAMMING
C PROGRAMMING
Stalongiles Philip
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Sivant Kolhe
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Alpana Gupta
 
E-examination Engine
E-examination EngineE-examination Engine
E-examination Engine
Alpana Gupta
 
Introduction to programming with c,
Introduction to programming with c,Introduction to programming with c,
Introduction to programming with c,
Hossain Md Shakhawat
 
Lecture 2 history_of_c
Lecture 2 history_of_cLecture 2 history_of_c
Lecture 2 history_of_c
eShikshak
 
uses of computer ppt
uses of computer ppt uses of computer ppt
uses of computer ppt
anshu verma
 
Game project Final presentation
Game project Final presentationGame project Final presentation
Game project Final presentation
gemmalunney
 
Final project report of a game
Final project report of a gameFinal project report of a game
Final project report of a game
Nadia Nahar
 
Computer History
Computer HistoryComputer History
Computer History
Crystal Cunningham
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
educationfront
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
JavaTpoint.Com
 
The five generations of computers presentation
The five generations of computers presentationThe five generations of computers presentation
The five generations of computers presentation
Swarnima Tiwari
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
avikdhupar
 
Learning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C LanguageLearning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C Language
Abhishek Dwivedi
 
Uses of computer
Uses of computerUses of computer
Uses of computer
a2zeenice
 

Viewers also liked (17)

An Overview of Programming C
An Overview of Programming CAn Overview of Programming C
An Overview of Programming C
 
C PROGRAMMING
C PROGRAMMINGC PROGRAMMING
C PROGRAMMING
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
E-examination Engine
E-examination EngineE-examination Engine
E-examination Engine
 
Introduction to programming with c,
Introduction to programming with c,Introduction to programming with c,
Introduction to programming with c,
 
Lecture 2 history_of_c
Lecture 2 history_of_cLecture 2 history_of_c
Lecture 2 history_of_c
 
uses of computer ppt
uses of computer ppt uses of computer ppt
uses of computer ppt
 
Game project Final presentation
Game project Final presentationGame project Final presentation
Game project Final presentation
 
Final project report of a game
Final project report of a gameFinal project report of a game
Final project report of a game
 
Computer History
Computer HistoryComputer History
Computer History
 
Introduction to Programming Languages
Introduction to Programming LanguagesIntroduction to Programming Languages
Introduction to Programming Languages
 
C Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpointC Programming Language Tutorial for beginners - JavaTpoint
C Programming Language Tutorial for beginners - JavaTpoint
 
The five generations of computers presentation
The five generations of computers presentationThe five generations of computers presentation
The five generations of computers presentation
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Learning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C LanguageLearning c - An extensive guide to learn the C Language
Learning c - An extensive guide to learn the C Language
 
Uses of computer
Uses of computerUses of computer
Uses of computer
 

Similar to 1. over view and history of c

C-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptxC-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptx
DhirendraShahi2
 
C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
NIRMALRAJSCSE20
 
chapter 1.pptx
chapter 1.pptxchapter 1.pptx
chapter 1.pptx
SeethaDinesh
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
MalikaJoya
 
C language
C languageC language
C language
marar hina
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
Selvaraj Seerangan
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
BAKRANIYA KALPESH
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
Anandhasilambarasan D
 
Understanding C and its Applications.pdf
Understanding C and its Applications.pdfUnderstanding C and its Applications.pdf
Understanding C and its Applications.pdf
AdeleHansley
 
C programming
C programming C programming
C programming
Rohan Gajre
 
C Fundamental.docx
C Fundamental.docxC Fundamental.docx
C Fundamental.docx
AbhishekGoutam6
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDYC LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
Malikireddy Bramhananda Reddy
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C language unit-1
C language unit-1C language unit-1
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
GopikaS12
 
Basics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptxBasics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptx
CoolGamer16
 
Chapter 1: Introduction
Chapter 1: IntroductionChapter 1: Introduction
Chapter 1: Introduction
Eric Chou
 
C Programming[Sample]
C Programming[Sample]C Programming[Sample]
C Programming[Sample]
Mostafa Ali
 
Learn C Language
Learn C LanguageLearn C Language
Learn C Language
Kindle World..!
 
Stucture of c program
Stucture of c programStucture of c program
Stucture of c program
Vpmv
 

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

C-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptxC-PROGRAMMING-LANGUAGE.pptx
C-PROGRAMMING-LANGUAGE.pptx
 
C session 1.pptx
C session 1.pptxC session 1.pptx
C session 1.pptx
 
chapter 1.pptx
chapter 1.pptxchapter 1.pptx
chapter 1.pptx
 
Introduction to C programming
Introduction to C programmingIntroduction to C programming
Introduction to C programming
 
C language
C languageC language
C language
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Introduction to c language
Introduction to c language Introduction to c language
Introduction to c language
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
Understanding C and its Applications.pdf
Understanding C and its Applications.pdfUnderstanding C and its Applications.pdf
Understanding C and its Applications.pdf
 
C programming
C programming C programming
C programming
 
C Fundamental.docx
C Fundamental.docxC Fundamental.docx
C Fundamental.docx
 
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDYC LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
C LANGUAGE UNIT-1 PREPARED BY M V BRAHMANANDA REDDY
 
C languaGE UNIT-1
C languaGE UNIT-1C languaGE UNIT-1
C languaGE UNIT-1
 
C language unit-1
C language unit-1C language unit-1
C language unit-1
 
C Programming language - introduction
C Programming  language - introduction  C Programming  language - introduction
C Programming language - introduction
 
Basics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptxBasics of C Lecture 2[16097].pptx
Basics of C Lecture 2[16097].pptx
 
Chapter 1: Introduction
Chapter 1: IntroductionChapter 1: Introduction
Chapter 1: Introduction
 
C Programming[Sample]
C Programming[Sample]C Programming[Sample]
C Programming[Sample]
 
Learn C Language
Learn C LanguageLearn C Language
Learn C Language
 
Stucture of c program
Stucture of c programStucture of c program
Stucture of c program
 

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

  1. 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.
  翻译: