Course Objectives:
-
- To develop various problem solving strategies.
- Implementing various programming technique using C.
- To make foundation in programming languages.
Course Contents:
Unit I: Introduction ————————————————————– 3 hours
-
- Flow chart and algorithms
- History of C
- Characteristics of C
- Structure of C Program
Unit II: Variable and data types ———————————————– 7 hours
-
- Constant and variables
- Variable declaration
- Variable Types
- Simple input/output function
- Operators
Unit III: Loops and Decisions ————————————————– 8 hours
-
- Introduction
- For Loop
- While Loop
- Do while Loop
- Nested Loop
- Case
- Break and continue statements
- The if, if else, else-if and switch statements
Unit IV: Functions —————————————————————- 6 hours
-
- Introduction
- Returning a value from a function
- Sending a value to a function
- Arguments
- External variables
- Preprocessor directives
- C libraries
- Macros
- Header files and prototyping
Unit V: Arrays and Strings —————————————————- 10 hours
-
- Introduction to Arrays
- Initializing Arrays
- Multidimensional Arrays
- String
- Functions related to the strings
Unit VI: Pointers —————————————————————– 4 hours
-
- Pointers definition
- Pointers and Arrays
- Returning multiple values from functions using pointer
- Pointer Arithmetic
- Pointer and Strings
- Double Indirection
- Pointer to Arrays
Unit VII: Structure and Unions ———————————————– 4 hours
-
- Definition of Structure
- Nested type Structure
- Arrays of Structure
- Structure and Pointers
- Linked Lists
- Union and application of it.
Unit VIII: File I/O —————————————————————- 4 hours
-
- Stream
- Text Stream
- Binary Stream
- File Pointer
- Open File
- File Open Mode
- Closing File, fgets, fputs, fread, fwrite
- Random Access I/O (fseek) and fprintf/fscanf
Unit IX: Developing a Project ————————————————- 2 hours
-
- Project definition and functional specifications
- Top Down Analysis
- Decomposition of Projects in different modules and inter-module relationship
- Data flow diagrams
- Translation of Different modules in codes
Laboratory:
-
- Laboratory work at an initial stage will emphasize on the verification of programming concepts learned in class and uses of loops, functions pointers structures and unions.
- Final project of 10 hours will be assigned to the students to put together most of the programming concepts development in earlier exercises.
Reference Books:
-
- S.k. Srivastava and Deepali Srivastava: C in Depth
- Kely and Pohl: A book on C
- Wait, Mitchell, Steven Prata and Donald Martin: C primer Plus
- Yeswant Kanetkar: Let us C