Lecture 1
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
189
On Slideshare
189
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
0
Comments
0
Likes
0

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. LECTURE -1
  • 2. WELCOME TO C LANGUAGE
    • IN 1960 ALGOL BY INTERNATIONAL COMMITTEE.
    • IT WAS TOO GENERAL AND ABSTRUCT.
    • IN 1963 CPL(COMBINED PROGRAMMING LANGUAGE) WAS DEVELOPED AT CAMBRIDGE UNIVERSITY.
    • IT WAS TOO TURNED OUT TO BE VERY BIG AND DIFFICULT TO LEARN.
    • IN 1967 BCPL(BASIC CPL) AT CAMBRIDGE UNIVERSITY IT WAS TOO SPECIFIC AND MUCH TOO LESS POWERFUL.
  • 3.
    • IN 1970 B LANGUAGE SIMPLIFICATION TO CPL BY KEN THOMPSON AT AT&T LABS
    • IT WAS TOO SPECIFIC AND LIMITED IN APPLICATION.
    • IN 1972 C DEVELOPED BY RITCHIE AT AT&T LABS
    • IT WAS TRULY A GENERAL LANGUAGE EASY TO LEARN AND VERY POWERFUL.
    • IN 1972 THE NEXT PHASE OF EVALUATION TO C BY INCORPORATING FEATURES OF OOP REINCARNATING C INTO ITS NEW AVATAR C++.
  • 4. FEATURES OF C LANGUAGE
    • C is a machine independent.
    • IT IS highly portable language .
    • It has only as few as 32 keywords
    • It has a comprehensive set of operators .
    • Users can create their own functions .
    • C is low level & high level support.
    • It has a large library of functions.
  • 5. Component Of C Language
    • As, with any language , C language also has following language elements :
    • Character Sets.
    • Data Types.
    • Constants.
    • Variables.
    • Keywords.
    • Grammar ( Syntax and semantic ).
  • 6. CHARACTER SET
    • Letters A – Z or a – z.
    • Digits 0 – 9.
    • Special Symbols (all the special symbols present on the keyboard)
    • White spaces Blanks space , horizontal tab, carriage return , new line, from feed.
  • 7. DATA TYPES Void Char Int Float Double Array Pointer Structure Union Enum, etc Primary Data Types Composite Data Types C Data Types
  • 8. PRIMARY DATA TYPES
    • Data type size
    • Char one byte
    • Int two byte
    • Float four bytes
    • Double eight byte
  • 9. COMPOSITE DATA TYPES
    • ARRAY : Collection of similar data type.
    • POINTER : Store the address of any memory location.
    • STRUCTURE : Collection of variables of different data types.
    • UNION : Collection of variables of different data types share common memory.
    • Enumerated data type :
  • 10. CONSTANTS
    • Character constant.
    • Integer constant.
    • Real constant.
    • String constant.
    • Logical constant.