Professional Documents
Culture Documents
U18NCSC403: Programming in 'C'
U18NCSC403: Programming in 'C'
STATISTICS
UNIT - 1:
UNIT - 2:
Expression and Conditional Expressions, Control structures, If-Else, SWITCH, WHILE, FOR
and DO WHILE Loop structures. Break continue, GO o's and Label Statements. Function,
function returning, Non-integers. Function arguments - Static and register variables.
UNIT - 3:
Arrays and. Strings - Array Declaration Multi dimensional Arrays Strings / Character Arays,
Array initialization - Pointers and Addresses. Pointers and Arrays - Pointer to functiois.
UNIT - 4:
Structures and functions, Arrays of structures, Fields, Unions - type definiton standard input and
output - formatted output - output - Access to the standard library.
UNIT - 5:
File Access, File handling in C - File discriptions - Error handling - 'Low level i/o - Read and
Write'. Open, Create, Close, Unlink - Random Access - seek and 1 seek.
TEXT BOOK:
1.Kapoor, V.K. and Gupta, S.P. (1978): Fundamentals of applied statistics, Sultan Chand &
Sons.
REFERENCE BOOK:
Grant, E,L. and Laven Worth, R.S.: Statistical Quality Control, McGraw Hill.
Category NC
Approval 47th Academic Council Meeting
C Programming Lab
4. Largest, Smallest among ‘n’ numbers (Also use it to find the number of occurrences of a given
number)
9. String manipulations without using string functions (String length, String Comparison, String
Concatenation, Palindrome Checking, Counting words and lines in String – use function
Pointers).
MATHEMATICS
Prerequisite –NIL
OBJECTIVES
At the end of this course, students shall be able to this computer lab course aims to provide strong
logical thinking and error-free syntax
UNIT I – UNIX 12
Introduction - History - Basic Commands - Working with Files - Working with Directories - Filename
Substitution - Standard Input / Output and I/O Redirection - Pipes - Standard Error - More on
Commands.
Introduction- Identifiers and keywords, Constants and variables, Declarations – Expressions and
statements, Types of operators - Library functions Input statements - Output statements.
Conditional statements-If …else - Switch. Case - Looping - While, DO While - Break and continue,
Comma operator, go to statement.
UNIT IV – FUNCTIONS 12
UNIT V – ARRAYS 12
Arrays –single dimension- Arrays with two dimensions- Matrix manipulations - String operations.
TEXT BOOKS
1. Stephen G. Kochan and Patrick Wood, UNIX Shell Programming, Sams Publishing, 2003.
3. Deitel H.M. and Deitel .P.J, “How to Program C”, Prentice Hall India, 2001.
4. Kamthane, Ashok N, “Programming in C”, Pearson Education, 2013.
Prerequisite
OBJECTIVES
At the end of this course, students shall be able to this computer lab course aims to provide strong
logical thinking and error-free syntax
22
333
4444
……
………
b)
3. Program to find roots of a quadratic equation.
4. Program to sort the array of numbers and then to find median value.
5. Program to read an integer number and then to print in the reverse order and also to find the sum
of all the digits.
8. Program to create structure, which consists of EMPLOYEE details like ID Number, Name,
Designation, Basic Salary, DA, others. Then to calculate DA, HRA and PF depending on the
basic salary and print gross salary, deduction, net salary.
9. Program to read two Matrices of different Data Types such as integers and floating point numbers
and then to find the sum, difference, and product of the above two matrices.