You are on page 1of 3

Syllabus‌ ‌

Unit-1‌‌ Introduction to Computer and Programming Lecture Hours:30

‌‌
Chapter 1.1 Introduction, Basic block diagram and functions of various components of
computer, Flow charts and Algorithms. Features of C language, structure of C
Program, comments, header files, data types, constants and variables, operators,
expressions, evaluation of expressions, type conversion.

Self-Study: Precedence and associatively of operators.


Experiment 1.1 Write a program that reads two nos. from keyboard and gives their addition,
subtraction, multiplication, division and modulo.
Chapter 1.2 Decision making statements, nesting of decision control structures, break, go to
statement.

Working of continue statement with flow chart.


Experiment 1.2 a) Write a program to find sum of all integers greater than 100 & less than 200
and are divisible by 5.

b) The distance between two cities (In KM) is input through keyboard. Write a
program to convert and print this distance in meters, feet, inches & centimetres.

c) Write a C program to perform post and pre-increment, post and pre-decrement


operations.
Experiment 1.3 1. Write a program which implements the working of all Bit-wise operators’.

2. Write a program to select & print the largest of the three nos. using Nested-If-
Else statement.
Unit-2‌‌ Loop and Array in C Lecture Hours:30
Chapter2.1 Looping statements, nested loop.

Self-Study: Use of break and continue in looping statement


Experiment 2.1
1. Write a C program to implement

2. Write a program to implement Pascal Triangle


Chapter‌‌2.2 Concepts of array, one-dimensional array and two-dimensional arrays, declaration
and initialization of arrays, string handling, string storage. Concepts of array, one-
dimensional array and two-dimensional arrays, declaration and initialization of
arrays, string handling. string storage.
Experiment‌‌2.2 Write a program to perform various matrix operations Addition, Subtraction,
Multiplication, and Transpose using switch-case statement.
Chapter 2.3 Concepts of library functions, Built-in-string functions, user defined functions,
prototypes, definition of function, parameters types, parameter passing, calling a
function, recursive function, Macros, Pre-processingNested function
Experiment 2.3
1. Write a program that used user defined function Swap and interchange
the value of two variable

2. Write a function prime that return 1 if it‘s argument is prime and return 0
otherwise.
Unit-3‌‌ Pointer and Storage Classes Lecture Hours:30
Chapter 3.1 Basics of pointers, pointer to pointer, pointer and array, pointer to array, array of
pointers.

Self-Study: Functions returning a pointer.


Experiment‌‌3.1 a) Write a program using pointer and function to determine the length of string.

b) Write a program using pointer to compare two strings.

c) Write a program using pointer to concatenate two strings.


Experiment‌‌3.2 a) Write a program using pointer to copy one string to another string.

b) Write a program using pointer to read an array if integer and print element in
reverse order
Chapter 3.2 ‌Basics of structures, structure members, accessing structure members, nested
structures, array of structures, structure and functions.structures and pointers.
Experiment 3.3 a) Define a structure type, personal, that would contain person name, date of
joining and salary. Using this structure, write a program to read this information
for one person from the keyboard and print the same on the screen.

b) Define a structure called cricket that will describe the following information:
a. Player name b. Team name c. Batting average
Chapter 3.3 Introduction to Dynamic memory allocation, malloc, calloc. Deallocation of
memory.
Experiment 3.4 a) Write a program that uses a table of integers whose size will be specified
interactively at run time.

b) Write a program to store a character string in block of memory space created


by malloc () and then modify the same to store a large string.
Experiment 3.5 a) A program to illustrate reading files contents.

b) A program to illustrate the use of fgets().

c) A program to illustrate the use of fputc() and fputs().

You might also like