SlideShare ist ein Scribd-Unternehmen logo
1 von 19
INTRODUCTION TO C
INTRODUCTION TO C ,[object Object],[object Object]
Features of C ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Steps in learning C Character Set Programs Instructions Tokens
C Character Set C Character Set Execution Character Set Source Character Set Special Characters Digits Alphabets Escape Sequence White Spaces
C Character Set (Cont) ,[object Object],[object Object],[object Object],[object Object]
Source Character Set Letters a to z ,A to Z Digits  0 to 9 Special Characters ! @ # $ % ^ & * ( ) _ - + = | { } [ ] etc,. White Spaces Blank Space ,Horizontal tab, New line, Vertical tab etc,.
Special characters ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Executable Character Set Characters Escape Sequence Back Space  Horizontal  Space  Vertical Space  Newline
C Tokens ,[object Object],[object Object]
C Tokens (Cont) C Tokens Identifiers Eg:main, avg Keywords Eg: int, for operators Eg: + - Strings Eg: “ab” spI symbol Eg: # $ % Constants Eg:17, 15.5
Executing a C Program Creating the Program Compilation Linking Execution
Executing a C Program (Cont) ,[object Object],[object Object],[object Object],[object Object],[object Object]
Executing C program using UNIX ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Structure of C program DOCUMENTATION SECTION PREPROCESSOR SECTION DEFINITION SECTION GLOBAL DECLARATION SECTION main() { Declaration part; Executable Part; } sub program section { Body of the subprogram; }
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
C Programs ,[object Object],[object Object],[object Object],[object Object]
Preprocessor Directives ,[object Object],[object Object]

Weitere ähnliche Inhalte

Was ist angesagt?

1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of c
Harish Kumawat
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
indrasir
 

Was ist angesagt? (20)

History of c
History of cHistory of c
History of c
 
Introduction to C Programming
Introduction to C ProgrammingIntroduction to C Programming
Introduction to C Programming
 
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
 
1. over view and history of c
1. over view and history of c1. over view and history of c
1. over view and history of c
 
C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)C basics 4 std11(GujBoard)
C basics 4 std11(GujBoard)
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Learn C
Learn CLearn C
Learn C
 
Introduction of c programming
Introduction of c programmingIntroduction of c programming
Introduction of c programming
 
C programming presentation for university
C programming presentation for universityC programming presentation for university
C programming presentation for university
 
Functions in c
Functions in cFunctions in c
Functions in c
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
C language
C languageC language
C language
 
C programming
C programmingC programming
C programming
 
Variables in C Programming
Variables in C ProgrammingVariables in C Programming
Variables in C Programming
 
C program
C programC program
C program
 
Programming in C Presentation upto FILE
Programming in C Presentation upto FILEProgramming in C Presentation upto FILE
Programming in C Presentation upto FILE
 
Variables in C and C++ Language
Variables in C and C++ LanguageVariables in C and C++ Language
Variables in C and C++ Language
 
Constants in C Programming
Constants in C ProgrammingConstants in C Programming
Constants in C Programming
 
C introduction by thooyavan
C introduction by  thooyavanC introduction by  thooyavan
C introduction by thooyavan
 
C programming language
C programming languageC programming language
C programming language
 

Ähnlich wie Unit4

Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
Alpana Gupta
 

Ähnlich wie Unit4 (20)

Unit 4 Foc
Unit 4 FocUnit 4 Foc
Unit 4 Foc
 
Introduction to c programming
Introduction to c programmingIntroduction to c programming
Introduction to c programming
 
Chapter 3(1)
Chapter 3(1)Chapter 3(1)
Chapter 3(1)
 
Introduction of c language
Introduction of c languageIntroduction of c language
Introduction of c language
 
Copy of UNIT 2 -- Basics Of Programming.pptx
Copy of UNIT 2 -- Basics Of Programming.pptxCopy of UNIT 2 -- Basics Of Programming.pptx
Copy of UNIT 2 -- Basics Of Programming.pptx
 
c programming session 1.pptx
c programming session 1.pptxc programming session 1.pptx
c programming session 1.pptx
 
Chapter1.pptx
Chapter1.pptxChapter1.pptx
Chapter1.pptx
 
C programming
C programmingC programming
C programming
 
2.Overview of C language.pptx
2.Overview of C language.pptx2.Overview of C language.pptx
2.Overview of C language.pptx
 
C programming languag for cse students
C programming languag for cse studentsC programming languag for cse students
C programming languag for cse students
 
Chapter3
Chapter3Chapter3
Chapter3
 
C programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakilC programming slide day 01 uploadd by md abdullah al shakil
C programming slide day 01 uploadd by md abdullah al shakil
 
C programming presentation(final)
C programming presentation(final)C programming presentation(final)
C programming presentation(final)
 
What is turbo c and how it works
What is turbo c and how it worksWhat is turbo c and how it works
What is turbo c and how it works
 
(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt(Lect. 2 & 3) Introduction to C.ppt
(Lect. 2 & 3) Introduction to C.ppt
 
C prog ppt
C prog pptC prog ppt
C prog ppt
 
c_pro_introduction.pptx
c_pro_introduction.pptxc_pro_introduction.pptx
c_pro_introduction.pptx
 
Introduction to C Programming - I
Introduction to C Programming - I Introduction to C Programming - I
Introduction to C Programming - I
 
Cnotes
CnotesCnotes
Cnotes
 
Introduction to C
Introduction to CIntroduction to C
Introduction to C
 

Unit4

  • 2.
  • 3.
  • 4. Steps in learning C Character Set Programs Instructions Tokens
  • 5. C Character Set C Character Set Execution Character Set Source Character Set Special Characters Digits Alphabets Escape Sequence White Spaces
  • 6.
  • 7. Source Character Set Letters a to z ,A to Z Digits 0 to 9 Special Characters ! @ # $ % ^ & * ( ) _ - + = | { } [ ] etc,. White Spaces Blank Space ,Horizontal tab, New line, Vertical tab etc,.
  • 8.
  • 9.
  • 10. Executable Character Set Characters Escape Sequence Back Space Horizontal Space Vertical Space Newline
  • 11.
  • 12. C Tokens (Cont) C Tokens Identifiers Eg:main, avg Keywords Eg: int, for operators Eg: + - Strings Eg: “ab” spI symbol Eg: # $ % Constants Eg:17, 15.5
  • 13. Executing a C Program Creating the Program Compilation Linking Execution
  • 14.
  • 15.
  • 16. Structure of C program DOCUMENTATION SECTION PREPROCESSOR SECTION DEFINITION SECTION GLOBAL DECLARATION SECTION main() { Declaration part; Executable Part; } sub program section { Body of the subprogram; }
  • 17.
  • 18.
  • 19.