Lecture 1

165 views

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
165
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Lecture 1

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

×