PROGRAMMING IN C Syllabus Sage University
PROGRAMMING IN C Syllabus Sage University
Introduction to Programming:
Problem Solving Using Computers: Language Classification, Problem Analysis,
Algorithm and Flowchart design. Algorithms: Steps in developing algorithms,
advantages and disadvantages. Flowcharts: Symbols used in developing
flowcharts, advantages and disadvantages. Coding, testing, debugging,
Documentation and maintenance. Program development and modular design.
Part B
1. Searching an element in an array using pointers.
2. Checking whether the given matrix is an identity matrix or not.
3. Finding the first N terms of Fibonacci series.
4. Declare 3 pointer variables to store a character, a character string and an
integer respectively. Input values into these variables. Display the
address and the contents of each variable.
5. Define a structure with three members and display the same.
6. Declare a union with three members of type integer, char, string and
illustrate the use of union.
7. Recursive program to find the factorial of an integer.
8. Finding the maximum of 4 numbers by defining a macro for the
maximum of two numbers.
9. Arranging N numbers in ascending and in descending order using bubble
sort.
10. Addition and subtraction of two matrices.
11. Multiplication of two matrices.
12. Converting a hexadecimal number into its binary equivalent.
13. Check whether the given string is a palindrome or not.
14. Demonstration of bitwise operations.
15. Applying binary search to a set of N numbers by using a function.
Files, Preprocessor, standard library and header files:
Files: Introduction, File data type, opening and closing a file, file functions
(getc, putc, getw, putw, fscanf, fprintf, fread, fwrite, fgets, fputs, feof).
Preprocessor: #define, #include, #undef, Conditional compilation directives, C
standard library and header files: Header files, string functions, mathematical
functions, Date and Time functions
Create a sequential file with three fields: empno, empname, empbasic. Print all
the details in a neat format by adding 500 to their basic salary.
T1: Forouzon A Behrouz, Gilberg F Richard, A Structured Programming
Approach using C - 3rd Illustrated Edition, 2009.
Text Books T2: Kanetkar, Yashavant: “Let Us C”, 6th Edition. BPB Publications.
T3: Balagurusamy, E: “Programming in ANSI C” 3rd Edition. Tata McGraw-
Hill
R1:The C programming Language by Richie and Kernighan, 2004, BPB
Publication
References
R2:Gottfried, Byron S: “Programming with C”, 1996. Tata McGraw-Hill
R3:Deitel, H M and Deitel P J: “C How to Program”, 2nd Edition. Prentice-Hall
After reading this course students will learn
After completion of the course the student will be able:
CO1: To be able to use the basic concepts of Computer components. To be
able to design, implement, test, debug and document programs in C.
CO2: To be able to use functions, and functions with parameters passing
Course
option.
Outcomes
CO3: To be able to use pointers and arrays, perform pointer arithmetic.
CO4: To be able to understand the advance topics in C like file handling
functions and the concept of Standard C library.
CO5: To be able to learn the concept of C preprocessor and its application in
program development.
Mapping of Course outcome with Program Outcomes, PSO’s, and Knowledge Levels (As per Blooms
Taxonomy)
Knowledge Levels (K1, K2,
CO/PO PO1 PO2 PO3 PO4 PO5 PO6 PO7 PO8 PO9 PO10 PO11 PO12 PSO1 PSO2 PSO3 PSO4 …, K6)
CO1 3 2 1 1 1 2 2 1 2 K2
CO2 3 2 3 1 1 1 2 2 1 2 K3
CO3 3 2 3 3 1 1 1 2 2 1 1 2 K3
CO4 3 2 3 2 1 1 1 2 2 2 1 2 K5
CO5 3 2 3 3 3 1 1 1 2 2 2 1 2 K6