First Semester
C Programming
Course Description: This course covers the concepts of structured programming using C programming language.
Course Objectives: This course is designed to familiarize students to the techniques of programming in C.
Contents of Chapter |
|---|
Unit 1: Problem Solving with Computer (2 Hrs.)Problem analysis, Algorithms, and Flowchart, Coding, Compilation and Execution, History of C, Structure of C program, Debugging, Testing, and Documentation |
Unit 2: Elements of C (4 Hrs.)C Standards( ANSI C and C99), C Character Set, C Tokens, Escape sequence, Delimiters, Variables, Data types (Basic, Derived, and User Defined), Structure of a C program, Executing a C program, Constants/ Literals, Expressions, Statements, and Comments. |
Unit 3: Input and Output (2 Hrs.)A conversion specification, Reading a character, Writing a character, I/O operations, Formatted I/O |
Unit 4: Operators and Expression (4 Hrs.)Arithmetic operator, Relational operator, Logical or Boolean operator, Assignment Operator, Ternary operator, Bitwise operator, Increment or Decrement operator, Conditional operator, Special Operators(size and comma), Evaluation of Expression, Operator Precedence and Associativity. |
Unit 5: Control Statement (4 Hrs.)Conditional Statements, Decision Making and Branching, Decision Making and Looping, Exit function, Break and Continue. |
Unit 6: Arrays (6 Hrs.)Introduction to Array, Types of Array (Single Dimensional and Multidimensional), Declaration and Memory Representation of Array, Initialization of array, Character Array and Strings, Reading and Writing Strings, Null Character, String Library Functions( string length, string copy, string concatenation, string compare) |
Unit 7: Functions (5 Hrs.)Library Functions, User-defined functions, Function prototype, Function call, and Function Definition, Nested and Recursive Function, Function Arguments and Return Types, Passing Arrays to Function, Passing Strings to Function, Passing Arguments by Value, Passing Arguments by Address, Scope visibility and a lifetime of a variable, Local and Global Variable, |
Unit 8: Structure and Union (5 Hrs.)Introduction, Array of structure, Passing structure to function, Passing an array of structure to function, Structure within the structure ( Nested Structure), Union, Pointer to structure |
Unit 9: Pointers (6 Hrs.)Introduction, The & and * operator, Declaration of the pointer, Chain of Pointers, Pointer Arithmetic, Pointers and Arrays, Pointers and Character Strings, Array of Pointers, Pointers as Function Arguments, Function Returning pointers, Pointers and Structures, Dynamic Memory Allocation |
Unit 10: File Handling in C (4 Hrs.)Concept of File, Opening, and closing of File, Input-Output Operations in File, Random access in File, Error Handling in Files |
Unit 11: Introduction to Graphics (3 Hrs.)Concepts of Graphics, Graphics Initialization, and Modes, Graphics Function |