Syllabus

Course Code: B-MAT 301    Course Name: Programming Skills with C

MODULE NO / UNIT COURSE SYLLABUS CONTENTS OF MODULE NOTES
1 Overview of C: Introduction and importance of C, Basic structure of a C program, Executing a C program. Elements of C: C character set, C tokens, Identifiers and keywords, Constants and Variables, Data types, Assignment statement, Symbolic constants. Operators & Expression: Arithmetic, relational, logical, bitwise, unary, assignment, conditional operators and special operators. Arithmetic expressions, evaluation of arithmetic expression, type casting and conversion, operator hierarchy & associativity
2 Input/output: Unformatted & formatted I/O function, Input functions viz. scanf(), getch(), getche(), getchar(), gets(); output functions viz. printf(), putch(), putchar(), puts().
Decision making & branching: Decision making with IF statement, IF…ELSE statement, Nested IF statement, ELSE-IF ladder, SWITCH statement, GOTO statement.
3 Decision making & looping: For, while, and do-while loop, jumps in loops, break, continue statement.
Arrays: Definition, types, initialization, processing an array.
4 Character Strings: Declaration and initialization, Reading and writing, Arithmetic Operations on Characters, Putting strings together, Comparison of strings, String handling Functions.
User defined functions: Need for user defined functions, form of C functions, return values and their types, calling a function, category of functions, nesting of functions, Recursion, Functions with arrays, scope of variables in functions, ANSI C functions.
Copyright © 2020 Kurukshetra University, Kurukshetra. All Rights Reserved.