Ec006 C Programming
Ec006 C Programming
Prerequisite Nil
Course Objectives
3. To provide hands-on training with the means of writing efficient, maintainable and portable code.
Course Outcomes On successful completion of the course, the student will be able to:
1. Understand the concept of declaring variables, constants, data types and arrays. (1,2)
2. Design programs involving decision structures, loops, conditional statements and functions. (2,3,4)
3. Examine the internal representation of two and three dimension arrays in C. (1,4)
4. Understand dynamic memory allocation, parameter passing, the use of pointers. (1,2,4)
Note: Numbers given in the parenthesis refer to Graduate Attributes required by NBA.
UNIT I INTRODUCTION TO C 9
UNIT II ARRAYS 9
Defining and processing arrays - Using different data types, indexes and access to arrays. – Single
dimensional arrays – Two dimensional arrays- -Multi-dimensional arrays – programs using arrays- Array
applications: Search in sorted and unsorted data and merging of arrays – Sorting algorithms. UNIT III
FUNCTIONS AND POINTERS 9
Functions – Types - Declaring, defining and accessing functions – Parameter passing methods –
Prototypes -Programs using functions -– Recursion –- String handling –Pointer s – Declaration –
Operations on pointers -Accessing variable through pointer – Initializing pointer variable – Pointers and
Functions – Pointers and Arrays – Example programs using pointers with function & arrays–Command
line arguments – Dynamic memory allocation.
File structure- File pointer – file operations – Opening and closing of file – Creating, Processing and
updation on files- File handling programs- Case studies.
Text Books
1. Kernighan,B.W and Ritchie,D.M, “The C Programming language”, Second Edition, Pearson Education,
2006.
References
1. Pradip Dey, ManasGhosh, “Fundamentals of Computing and Programming in C”, First Edition, Oxford
University Press, 2009.
4. Byron S Gottfried, “Programming with C”, Schaum’s Outlines, Second Edition, Tata McGraw-Hill, 2006.
5. R.G. Dromey, “How to Solve it by Computer”, Pearson Education, Fourth Reprint, 2007
6. Herbert Schildt, "Complete Reference C", Tata McGraw-Hill Fourth Edition, 2009.
9. Kelly Pohl, "A Book on C", Pearson Education, Fourth Edition, 2005.