Subject Details
Dept     : COM CA
Sem      : 4
Regul    : 2021
Faculty : S.Saranya
phone  : NIL
E-mail  : saranya.s.cca@drsnsrcas.ac.in
76
Page views
0
Files
0
Videos
0
R.Links

Icon
Syllabus

UNIT
1
UNIT I:Overview of C

History of C – Importance of C – Basic Structure of C Programs – Programming Style – Executing a “C” Program – Constants, Variables and Data Types: Introduction – Character Set – C Tokens – Keywords and Identifiers – Constants – Variables – Data Types – Declaration of Variables Problem 1: Create a C program to find the size of int, float, double and char data types. Problem 2: Write a C Program to find out quotient and remainder and print result.

UNIT
2
UNIT II:Decision Making and Looping

Introduction – The WHILE Statement – The DO Statement – IF-ELSE Statement - The For Statement – Jumps in Loops Problem 3: Write a C Program to find the factorial of a given number. Problem 4: Write a C Program to find the greatest of three numbers.

UNIT
3
UNIT III: Arrays

Introduction – One-dimensional Arrays – Declaration of One-dimensional Arrays – Initialization of One-dimensional Arrays - Two-dimensional Arrays – Initialization of Two-dimensional Arrays – Multi-dimensional Arrays Problem 5: Write a C Program to find the sum of array elements Problem 6: Write a C Program to sort array in ascending order.

UNIT
4
UNIT IV:Character Arrays and Strings

Introduction – Declaring and Initializing String Variables – Reading Strings from Terminal – Writing Strings to Screen – Arithmetic / Operations on Characters – Comparison of Two Strings – String-handling Functions Problem 7: Write a Program in C to handle any 3 string functions. Problem 8: Program to find the length of the string without using strcat ().

UNIT
5
Unit V: User-defined Functions

Introduction – A Multi-function Program – Elements of User-defined Functions – Definition of Functions – Return Values and their Types – Function Calls – Function Declaration Problem 9: Write a program in C to perform any 3 arithmetic operations. Problem 10: Write a program in C to check whether the given number is prime or not.

Reference Book:

1. The C programming Language by Richie and Kernighan, 2004, BPB Publication, ISBN: 0131103628 2. Programming in ANSI C by Balaguruswamy, 3rd Edition, 2005, Tata McGraw Hill, ISBN: 0070681821

Text Book:

1. 1. E.Balagurusamy, “Programming in ANSI C”, 4th Edition, Tata Mc Graw Hill Publication, 2009, ISBN: 978-0-07-064822-7

 

Print    Download