MANAV RACHNA UNIVERSITY, FARIDABAD
Department of Computer Science and Technology
Course: B.Tech. CSE
Semester: III
Subject: Data Structures CSH103B T&P
________________________________________________________________________
LAB 1
Aim: To implement the operations of One-Dimensional Array
CSH103B.1 (CO1): Understand the concept of Dynamic memory management, algorithms,
and their complexity; demonstrate the abstract properties and operations of Linear data
structures (using Static Memory Allocation): Array; To apply different Searching and Sorting
algorithms.
Bloom's Taxonomy Level: BT1, BT2 and BT3
1. Write a program in C to read and print marks of 10 students (use separate functions
for inputting & printing marks).
2. Write a program in C to create a list of marks of 10 students in descending order,
given input of marks in ascending order.
3. Write a program in C to find the highest marks obtained out of 10 students (use
function to find largest).
4. Define function void insert (int a[], int value, int position) to insert a value at specific
position in an array a, given by the user. Assume that the array is large enough to add
the new value. Write a program in C that uses this function to do the insertion of
value at a position in the array.
5. Define function void delete (int a[], int position) to delete a value from specific
position in an array a, given by the user. Write a program in C that uses this function
to delete an element from a particular position. Print the original and post deletion
contents of the array.