Teaching
Course Credits Assigned
Course Name Scheme
Code
(Contact
Hours)
Theory Pract. Tut. Theory Pract Tut Total
. .
VSEC102 C Programming -- 2*+2 - 2 - 2
Examination Scheme
Course Theory Term Pract Total
Code Course work /
Name Oral
Internal End Exam
Assessment Test Sem Duration
(IAT) Exam (in Hrs)
IAT-I IAT- IAT-I +
II IAT-II
(Total)
VSEC102 C Programming - - - - - 25 25 50
Lab Objectives: This subject aims to provide students with an understanding of the role
computation can play in solving problems. The Course will be taught using C-Programming
Language.
1. Understand and use basic terminology in computer programming.
2. Use various data types in C programs effectively.
3. Design and implement programs involving decision structures, loops, and functions.
4. Design Implement Arrays , String, and Structure
5. Describe and utilize memory dynamics through the use of pointers.
6. Use different data structures and create/update basic data files in C.
Lab Outcomes: Learners will be able to
1. Illustrate the basic terminology used in computer programming.
2. Use different data types in a computer program.
3. Design programs involving decision structures, loops and functions.
4. Implement Arrays , String, and Structure
5. Describe the dynamics of memory by the use of pointers.
6. Use different data structures and create/update basic data files.
DETAILED SYLLABUS
Sr. Module Detailed Content Hours LO
No mapping
.
47
1.1 Character Set, Identifiers and keywords, Data
types, Constants, Variables.
1 LO1,
1.2 Operators-Arithmetic, Relational and logical,
Fundament LO2
Assignment, Unary, Conditional, Bitwise, Comma, 06
als of C-
other operators.
Programmi
Expression, statements, Library Functions,
ng Preprocessor.
1.3 Data Input and Output – getchar( ), putchar( ),
scanf( ), printf( ), gets( ), puts( ), Structure of C
program .
2.1 Branching - If statement, If-else Statement, Multiway LO3
decision.
2 Control 05
2.2 Looping – while, do-while, for
Structures 2.3 Nested control structure- Switch statement,
Continue statement Break statement, Goto
statement.
3.1 Function -Introduction of Function, Function Main, LO3
Functions defining a Function, accessing a Function, Function
3 and Prototype, Passing Arguments to a Function, 05
Paramete Recursion.
r
3.2 Storage Classes –Auto , Extern , Static, Register
4.1 Array-Concepts, Declaration, Definition, LO4
Accessing array element, One-dimensional
and Multidimensional array.
Arrays ,
4 String 4.2 String- Basic of String, Array of String, Functions in 05
String.h
Structure
4.3 Structure- Declaration, Initialization, structure
within structure, Operation on structures, Array of
Structure.
5.1 Pointer: Introduction, Definition and uses of LO5
Pointer Pointers, Address Operator, Pointer Variables,
5 03
Dereferencing Pointer, Void Pointer, Pointer
Arithmetic, Pointers to Pointers, Pointers and Array.
6 Files 6.1 Files: File operation- Opening, Closing, Creating, 02 LO6
Reading, Processing File.
Text Books
1. “Basics of Computer Science”, by BehrouzForouzan , Cengage Learning .
48
2. “Programming Techniques through C”, by M. G. Venkateshmurthy, Pearson Publication.
3. “Programming in ANSI C”, by E. Balaguruswamy, Tata McGraw-Hill Education.
4. “Programming in C”, by Pradeep Day and Manas Gosh, Oxford University Press.
5. “Let Us C”, by Yashwant Kanetkar, BPB Publication.
Reference Books
1. "The C Programming Language" by Brian W. Kernighan and Dennis M. Ritchie, Publisher:
Prentice Hall
Publication Date: February 22, 1988 ,ISBN-13: 978-0131103627 ,
2. "C Programming: A Modern Approach" by K. N. King, Publisher: W. W. Norton & Company
Publication Date: April 26, 2008 (2nd Edition), ISBN-13: 978-0393979503
3. "C Primer Plus" by Stephen Prata, Publisher: Addison-Wesley Professional Publication Date:
December 27, 2013 (6th Edition) ISBN-13: 978-0321928429
4. "Programming in C" by Stephen G. Kochan Publisher: Addison-Wesley Professional
Publication Date: August 18, 2014 (4th Edition) ISBN-13: 978-0321776419
Online Resources:
Sr. No. Website Name
1. Learn C - This website offers a free, interactive tutorial to learn C programming,
covering both basic and advanced topics.
2. Codecademy - Codecademy provides a comprehensive, interactive course for learning
C, complete with real-world projects and skill paths.
3. Coursera - Coursera, in collaboration with Duke University, offers a specialization in C
programming, including hands-on projects and a certificate upon completion.
4. edX - This course, offered by edX, covers C programming with a focus on Linux,
including professional certification.
Sr Suggested List of H
No Experiments rs
a) Program to demonstrate Operators Data Input and Output –
getchar( ), putchar( ), scanf( ), printf( ), gets( ), puts( )
01 02
b) Program to demonstrate Operators-Arithmetic, Relational and
logical, Assignment, Unary, Conditional, Bitwise, Comma, other
operators.
a) Program to demonstrate Branching - If statement, If-else
Statement, Multiway decision.
02 b) Program to demonstrate Looping – while, do-while 02
03 a) Program to demonstrate Nested control structure- Switch 02
statement, Continue statement, Break statement, Goto statement
a) Program to demonstrate Function, Passing Arguments to a Function
04 (call by value and call by reference 02
49
05 a) Implement an iterative function for factorial/ Fibonacci etc. 02
b) Implement a recursive function for factorial/ Fibonacci etc.
06 a) Program to demonstrate Storage Classes –Auto, Extern, Static, 02
Register
c) Program to demonstrate Array 1D,
07 02
d) Program to demonstrate Array 2D
e) Program to demonstrate String
08 02
f) Program to demonstrate String arrays of string
09 Program to demonstrate Structure 02
Write a program to store and display information of a student/employee
etc.
using structures.
a) Define a structure.
b) Read and store details.
c) Display the stored information.
10 Program to demonstrate pointers 02
a) Define a node structure.
b) Implement functions to insert, delete, and display nodes.
11 Program to demonstrate files 02
Write a program to maintain a simple student/employee etc. database using
file handling.
a) Open a file to store student records.
b) Implement functions to add, update, and display records.
c) Ensure data persistence by saving changes to the file.
12 Implement one small application using Function, Files, Structure and 02
Pointers concepts you have learnt in C (eg. : Simple Library Management
System
1.Functions: Add, display, and search books. 2. Files: Store and retrieve
book data. 3. Structures: Represent a book. 4. Pointers: Manage the list of
books dynamically
Sr No List of Assignments / Tutorials Hrs
01 Flowcharts for programs
02 Functions and Parameter
03 Control Structures
02
04 Functions and Parameter
05 Arrays, String Structure and Union
06 Pointer and Files
50
Assessment :
Term Work: Term Work shall consist of at least 10 to 12 practicals’ based on the above list. Also,
Term work Journal must include at least 2 assignments.
Term Work Marks: 25 Marks (Total marks) = 15 Marks (Experiment) + 5 Marks (Assignments) +
5 Marks (Attendance)
Practical & Oral Exam: An Oral & Practical exam will be held based on the above syllabus.
51