VL3101 Programming in C Syllabus:

VL3101 Programming in C Syllabus – Anna University Regulation 2021

UNIT I BASICS OF C PROGRAMMING

Introduction to programming paradigms –- Structure of C program – C programming: Data Types – Constants – Keywords – Operators: Precedence and Associativity – Expressions – Input / Output statements, Assignment statements – Decision making statements – Switch statement.

UNIT II LOOP CONTROL STATEMENTS AND ARRAYS

Iteration statements: For, while, Do-while statements, nested loops, break & continue statements – Introduction to Arrays: Declaration, Initialization – One dimensional array -Two dimensional arrays – Searching and sorting in Arrays – Strings – string handling functions – array of strings.

UNIT III FUNCTIONS AND POINTERS

Modular programming – Function prototype, function definition, function call, Built-in functions – Recursion – Recursive functions – Pointers – Pointer increment, Pointer arithmetic – Parameter passing: Pass by value, Pass by reference, pointer and arrays, dynamic memory allocation with malloc/calloc

UNIT IV STRUCTURES AND UNION

Storage class, Structure and union, Features of structures, Declaration and initialization of structures, array of structures, Pointer to structure, structure and functions, typedef, bit fields, enumerated data types, Union.

UNIT V MACROS AND FILE PROCESSING

Preprocessor directives – Simple and Conditional macros with and without parameters – Files – Types of file processing: Sequential and Random access – File operations – read, write & seek.

30 PERIODS

PRACTICALS:

1. Programs for i/o operations with different data types and operators
2. Programs using branching and looping statements
3. Programs implementing searching and sorting using arrays
4. Programs using recursive functions
5. Programs using pointers
6. Programs using Structures and Unions
7. Programs using macros
8. Programs to handle file operations

30 PERIODS

COURSE OUTCOMES:

Upon completion of the course, the students will be able to
CO1: Write simple C programs using basic constructs.
CO2: Design searching and sorting algorithms using arrays and strings.
CO3: Implement modular applications using Functions and pointers.
CO4: Develop and execute applications using structures and Unions.
CO5: Solve real world problem using files.

TOTAL: 60 PERIODS

TEXT BOOKS:

1. Kernighan, B.W and Ritchie,D.M, “The C Programming language”, Second Edition, Pearson Education, 2015.
2. Yashwant Kanetkar, Let us C, 17th Edition, BPB Publications, 2020.

REFERENCE BOOKS:

1. Pradip Dey, Manas Ghosh, “Computer Fundamentals and Programming in C”, Second Edition, Oxford University Press, 2013.
2. Ashok N Kamthane, Programming in C, Pearson, Third Edition, 2020
3. Reema Thareja, “Programming in C”, Oxford University Press, Second Edition, 2016.
4. Paul Deitel and Harvey Deitel, “C How to Program with an Introduction to C++”, Eighth edition, Pearson Education, 2018.
5. Byron S. Gottfried, “Schaum’s Outline of Theory and Problems of Programming with C”‘ McGraw-Hill Education, 1996.
6. Anita Goel and Ajay Mittal, “Computer Fundamentals and Programming in C”, 1st Edition, Pearson Education, 2013.