PROGRAMMING THROUGH ‘C’

Paper Code: 
MIT 124
Credits: 
04
Periods/week: 
04
Max. Marks: 
100.00
Objective: 

This module is designed to acquaint the students with the basics of ‘C’ programming language.

12.00
Unit I: 

Introduction to Computer System. Introduction to C: History of C, C standard library, Structured Programming, the basics of a typical C program Development Environment.

Introduction to ‘C’ programming: Introduction, A Simple C program, Memory Concepts, Arithmetic in C, Decision making.          

Structured Program Development in C: Introduction, Algorithm, Pseudo code, Control structures, if selection structure, if/else selection structure, while repetition structure, Structured Program Development in C: Counter Controlled Repetition, Sentinel Controlled Repetition, Nested control structures, Assignment operators, Increment and Decrement operators.

12.00
Unit II: 

C Program control: Introduction, Essentials of repetition, Counter controlled repetition, The for repetition structure, for structure: notes and observations, The switch Multiple selection structure, The do/while repetition structure, the break and continue statements, Logical operators, Equality and Assignment operators.                  

C Functions: Introduction, Program Modules in C, Math Library Functions, Functions, Functions Definitions, Function Prototypes, Header Files, Calling Functions: Call by Value and Call by reference, Storage Classes, Scope rules, Recursion, Recursion vs. Iteration.

12.00
Unit III: 

C Arrays: Declaring Arrays, Passing Arrays to Functions, Sorting arrays (Bubble Sort), Searching (Linear, Binary Search), Multiple-Subscripted Arrays.

C Pointers: Introduction, Pointer variable declaration and initialization, Pointer operators, Calling functions by reference, Const qualifier, Pointer Expressions and pointer arithmetic, Relationship between pointers and Arrays, Arrays of Pointers.

C characters and Strings: Introduction, Fundamentals of Strings and characters, Character and String Handling Library, String conversions and comparison functions.

12.00
Unit IV: 

C Formatted Input/Output: Streams, Formatting output with printf, Printing: Integers, Floating point numbers, Strings, Characters. Field Widths and Precisions, Flags in print format control string, Escape sequences, formatted input with scanf.

C structures, Unions, Bit Manipulations and Enumerations: Introduction, Structure Definition, Initializing structures, Accessing Members of structures, typedef, Union, Bitwise operators, Bit Fields, Enumerated Constants.           

12.00
Unit V: 

C File Processing: Files and streams, Sequential & random access files.

C Preprocessor: #include, #define preprocessor directives, macros, conditional compilation.

Introduction to Object oriented programming, comparison between C and C++.

ESSENTIAL READINGS: 
  1. H.M.Deitel & P.J.Deitel, “How to program in ‘C’”, 3rd Edition, Pearson Education, 2001.
REFERENCES: 
  1. B.Kernighan & D.Ritchie “C Programming Language”, 2nd Edition, Prentice-Hall, 1988.
  2. E. Balagurusami, “Programming in ‘ANSI C’”, TMH Publications.
  3. Yashwant Kanetkar, “Working with C”, BPB Publications.
  4. S. Lipschutz, “C Programming”, Schaum’s outline series, Tata McGraw Hill Edition.
Academic Year: