Programming with C - Lab
Prepared by IT & CSE Page 2
TABLE OF CONTENTS
1
Fundamentals of Computer Hardware, Introduction to
Programming Languages & Translators, DOS/UNIX
Commands
3-23
2
Algorithms & Flowcharts, Introduction to C, History, Steps of
Learning C, C – Tokens, Data Types - Format Specifiers, I/O
Statements, Structure of C Program, Sample C Programs
24-48
3
Operators in C, their Precedence and Associativity,
Arithmetic Expressions/Instructions, Type casting, Math.h
functions, Sample C Programs
49-64
4
Control Statements (Conditional): If and its Variants, Switch
(Break), Sample C Programs
65-81
5
Goto Statement, Control Statements (Looping): While,
Do..While, For Loop, Continue & Break (Unconditional),
Nested Loops, Sample C Programs
82-100
6
Arrays, One Dimensional Array: Declaration and
Initialization, Accessing Array Elements, Sample C Programs
101-107
7
Two Dimensional Array: Declaration and Initialization,
Accessing Array Elements, Sample C Programs
108-113
8
Strings: Read & Write, “String.h” Predefined Functions,
Sample C Programs
114-127
9
Pointers: Declarations, Types, Pointers to Arrays, Pointers to
Character Strings, Pointers to Pointers, Array of Pointers
128-141
10
Structures: Definition, Syntax, Nested Structures, Pointers to
Structures, Unions: Definition, Syntax
142-151
11
Functions: Definition, Syntax, Terminology, Function
Declaration, Classification (Arguments and Return Type),
Storage Classes, Sample C Programs
152-165
12
Parameter Passing Techniques, Passing Parameters Types,
Recursion
166-176
13
Files: Definition, Opening, Closing of Files, Reading and
Writing of Files, Sample C Programs
177-185
14
Binary Files, Random Accessing of Files, Enum, Typedef,
Preprocessor Commands, Sample C Programs
186-199