University of Madras - Syllabus of Bachelor of Science (BSc) Computer Science - Semester II - Paper III - CS109 - Programming In C
UNIVERSITY OF MADRAS
B.Sc. DEGREE COURSE IN COMPUTER SCIENCE
SEMESTER SYSTEM WITH CREDITS
(Effective from the Academic Year 2003-2004)
Semester II - Paper III - CS109 - Programming In C
Lecture Lab: 4
Duration: 3 hrs
Maximum Marks: 75
Credits: 3
UNIT - I:
C fundamentals Character set - Identifier and keywords - data types - constants - Variables - Declarations - Expressions - Statements - Arithmetic, Unary, Relational and logical, Assignment and Conditional Operators - Library functions.
UNIT - II:
Data input output functions - Simple C programs - Flow of control - if, if-else, while, do-while, for ioop, Nested control structures - Switch, break and continue, go to statements - Comma operator.
UNIT - III:
Functions -Definition - proto-types - Passing arguments - Recursions. Storage Classes - Automatic, External, Static, Register Variables - Multi-file programs.
UNIT - IV:
Arrays - Defining and Processing - Passing arrays to functions - Multi-dimension arrays - Arrays and String. Structures - User defined data types - Passing structures to functions - Self-referential structures - Unions - Bit wise operations.
UNIT - V:
Pointers - Declarations - Passing pointers to Functions - Operation in Pointers -
Pointer and Arrays - Arrays of Pointers - Structures and Pointers - Files : Creating
Processing ,Opening and Closing a data file.
References:
1. B.W. Kernighan and D M.Ritchie, The C Programming Language, 2
nd Edition, PHI, 1988.
2. H. Schildt. C: The Complete Reference, 4
th Edition. TMH Edition, 2000.
3. Gottfried,B.S, Programming with C, Second Edition, TMH Pub. Co. Ltd., New Delhi 1996.
4. Kanetkar Y., Let us C, BPB Pub., New Delhi, 1999.