MCA 102:Programming with 'C'
Lectures: 4 Periods/Week | Sessional Marks: 30 |
University Exam: 3 Hours | University Examination Marks: 70 |
UNIT-I
Introductory Concepts
Types of Programming Languages, Introduction to C, Desirable Program Characteristics.
Introduction to C Programming
The C Character Set, Writing First Program of C,
Identifiers and Keywords, Datatypes, Constants, Variables and Arrays, Declarations, Expressions Statements, Symbolic Constants.
Operators and Expressions
Arithmetic Operators, Unary Operators, Relational and Logical Operators,
Assignment Operators, The Conditional Operator, Library Functions.
Data Input and Output
Preliminaries, Single Character Input-The Getchar Function,
Single Character Output – The Putchar Function, Enter Input Data – The Scanf Function, More About the Scanf Function,
Writing Output Data – The Printf Function, More About the Printf Function, The Gets and Puts Functions.
Preparing and Running A Complete C Program
Planning a C Program, Writing a C Program, Error Diagnostics,
Debugging Techniques
UNIT-II
Control Statements
Preliminaries, Branching: The IF-ELSE Statement, Looping: The while Statement,
More Looping: The do-while Statement, Still More Looping: The for Statement, Nested Control Structures, The Switch Statement,
The break Statement, The continue Statement, The comma Statement, The goto Statement.
Functions
A Brief Overview, Defining a Function, Accessing a Function, Function Prototypes,
Passing Arguments to a Function, Recursion.
Program Structure
Storage Classes, Automatic Variables, External (Global) Variables, Static Variables.
UNIT-III
Arrays
Defining an Array, Processing an Array, Passing Arrays to Functions, Multidimensional Arrays,
Arrays and Strings.
Pointers
Fundamentals, Pointer Declarations, Passing Pointers to a Function, Pointers and One-dimensional Arrays,
Dynamic Memory Allocation, Operations on Pointers, Pointers and Multidimensional Arrays, Arrays of Pointers, Passing Functions to
Other Functions.
Structures and Unions
Defining a Structure, Processing a Structure, User-defined Data Types (Typedef),
Structure and Pointers, Passing Structures to Functions, Self-referential Structures, Unions.
Data Files
Why Files, Opening and Closing a Data File, Reading and Writing a Data File, Processing a Data File,
Unformatted Data Files, Concept of Binary Files.
UNIT-IV
Low-Level Programming
Register Variables, Bitwise Operations, Bit Fields.
Some Additional Features of C
Enumerations, Command Line Parameters, More About Library Functions, Macros,
The C Processor.
Appendix H Library Functions
Text Books
- Byron S Gottfried, “Programming with C”, Second Edition, Schaum Out Lines, TATA Mc Graw Hill (2007) Chapters: 1.8 to 1.10, 2,3,4,5,6,7,8.1 to 8.4,9, 10.1 to 10.9,11,12,13,14 and Appendix H
- Behrouy A. Foreuyan & Richard F. Gilberg, “Computer Science A structured programming Approach using C”, Third Edition, Cengage Learning (2008).
- Herbert Schildt, “The Complete Reference C”, Fourth Edition, TMH (2008)
- Ashok N. Kamthane, “Programming with ANSI and Turbo C”, Pearson Education (2008)
- Mullish Cooper, “The Spirit of C – An Introduction to Moderen Programming”, Jaico Books (2006)