C Programming Language
0%
Course Title: C Programming Language
Course No: CMP 172
Nature of the Course: Theory + Lab
Semester: 1
Full Marks: 50 + 50
Pass Marks: 23 + 23
Credit Hours: 3
Course Description
Course Objectives
Course Contents
1.4. Structure of C program
- Debugging
- Compiling a C program
- Executing a C program
2. Elements of C
2 hrs
3. Input and Output
2 hrs
4.2. Types of Operators
- Arithmetic operator
- Relational operator
- Logical or Boolean operator
- Assignment Operator
- Bitwise operator
- Prefix and Postfix Increment and Decrement operator
- Ternary operator
- Special Operators (size of and comma)
5. Control Statement
8 hrs
5.3. Decision Making Statement
- if, if else, if else if, nested if and switch case
5.4. Iteration (Loop) Statement
- for, while, do while, nested loops
6. Arrays and string
6 hrs
7. Functions
6 hrs
7.2. Types of Functions
- Library Functions
- User defined functions
7.3. Components of Functions
- Function prototype
- Function call
- Function Definition
8. Pointers
4 hrs
8.10. Dynamic Memory Allocation
- malloc()
- calloc()
- realloc()
- free()
Laboratory Works
- 1.Introduction to C Programming – basic structure of C program
- 2.To illustrate the use of Input, Output, Variable and Constants
- 3.To illustrate the different operators-Arithmetic, Relational and Logical Operators in C
- 4.To illustration of Control Structures (decision making) and processor directives
- 5.To illustration of Control Structures (looping)
- 6.To illustrate the function programming- simple and recursive functions
- 7.To illustrate the concept of Pointer and String
- 8.To illustrate the function programming- Call by value vs. call by reference
- 9.To illustrate the concept of Structure
- 10.To illustrate the different file operations
Text Books
- 1.Srivastava. (2009). C - In Depth - 2Nd Revised Edition. BPB Publications.
- 2.Kanetkar, Y. P. (2006). Let us c. BPB Publications.
Reference Books
- 1.Balagurusamy, E. (2019). Programming In Ansi C, 8Th Edition. MC Graw Hill India.
- 2.Gottfried, B. S. (1996). Programming with C Ind Adap ed. Tata McGraw-Hill Education.
- 3.Deitel, P. J., & Deitel, H. M. (2016). C: How to Program. Prentice Hall.
- 4.Kelley, A., & Pohl, I. (1998). A book on c: Programming in C. Addison-Wesley Professional.
- 5.Mittal, A. (2010). Programming In C: A Practical Approach. Pearson Education India.