C syllabus
C syllabus
OBJECTIVES:
To learn basics of C programming language.To be able to develop logics to create programs/
applications in C.
Unit-1
Introduction: Introduction to Programming Language, Introduction to C Programming,
Keywords & Identifiers, Constants, Variables, Input and Output Operations, Compilation and
pre-processing, Data types: Different data types, Data types qualifier, modifiers, Memory
representation, size and range, Operators: Operators (Arithmetic, Relational, Logical,
Bitwise, Assignment & compound assignment, Increment & Decrement, Conditional),
Operator types (unary, binary, ternary). Expressions, Order of expression (Precedence and
associativity)
Control structures: Decision Making and Branching (Simple IF Statement, IF…ELSE
Statement, Nesting IF… ELSE Statement, ELSE IF Ladder), Selection control structure
(Switch Statement).
Unit-2
Loops: The WHILE Statement, The DO…WHILE Statement, The FOR Statement, Jumps in
Loops, Array: Concept of Array, Array Declaration, types of array (one and multiple
dimension), Character Arrays and Strings, Subscript and pointer representation of array,
Array of Pointers, Limitation of array, Pointers: Concept of Pointer (null pointer, wild
pointer, dangling pointer, generic pointer), Pointer Expressions, Accessing the Address of a
Variable, Declaring Pointer Variables, Initializations of Pointer Variable, Accessing a
Variable through its Pointer, Pointer arithmetic.
Unit-3
Storage class: Types (auto, register, static, extern), scope rules, declaration and definition.
Function: Function & types (User defined function, library function) Function Definition,
Declaration, Function Calls, Header file and library, Function Arguments, string handling
function (strlen, strcmp, strcpy, strncpy, strcat, strstr), Function recursion, Functions
Returning Pointers, Pointers to Functions, Command line arguments, Application of pointer
(dynamic memory allocation).
Unit-4
Structure and Union: Defining, Declaring, Accessing, Initialization Structure, nested
structure, self-referential structure, bit-field, Arrays of Structures, Structures and Functions,
Unions, difference between structure and union, active data member, structure within union,
Self-referential Structure.
File: File Management in C, Defining and Opening a File, File opening modes (read, write,
append), Closing a File, File operations, file and stream, Error Handling During I/O
Operations, sequential and random access file, low level and high level file.
Text Books:
1. E. Balagurusamy, “Programming in ANSI C”, 4/e, (TMH)
Reference Books:
1. B. Kernighan & Dennis Ritchie, “The C Programming Language”, 2/e PHI
2. Paul Deitel, Harvey Deitel, “C: How to Program”, 8/e, Prentice Hall.
3. P.C. Sethi, P.K. Behera, “Programming using C”, Kalyani Publisher, Ludhiana