TABLE OF CONTENTS
I. INTRODUCTION: 1
1. Introduction 1
2. History 1
3. Structure of the C language 1
II. TOKENS or ELEMENTS: 3
1. Constants 3
2. Variables 4
3. Operators 4
4. Keywords 4
5. Data Types 5
III. DATA DECLARATIONS and INITIALIZATIONS: 7
1. Data Declarations 7
2. Data Initializations 7
3. Conversion Specifiers 8
4. The I/O Functions 8
· printf() function 8
· scanf() function 10
5. Unary Operator 11
6. Arithmetic or Binary Operators 12
7. Priority of Operators 13
8. Increment and Decrement Operators 14
9. Bitwise Operators 16
IV. CONTROL STATEMENTS: 21
1. Conditional Statements 21
· if-statement 21
· switch statement 28
2. Looping or Iterative Statements 32
· do..while loop 33
· while loop 35
· for loop 38
3. Unconditional Statements 29
· break statement 29
· continue statement 42
4. Ternary or Conditional Operator 27
V. ARRAYS: 43
1. Array Declarations 43
· Single or One Dimensional Arrays 43
· Double or Two Dimensional Arrays 44
2. Array Initializations 44
· Single or One Dimensional Arrays 44
· Double or Two Dimensional Arrays 45
3. Programs on Arrays 46
· Single or One Dimensional Arrays 46
· Double or Two Dimensional Arrays 52
No comments:
Post a Comment