You are on page 1of 2

Instructions for Students

1. Assignment should be Handwritten and neatly done (Use any type of sheets
available with you).
2. Assignment should be submitted on or before the date of submission. No
assignments after date of submission will be entertained.
3. Assignment should be submitted in PDF file through the link given below.
https://forms.gle/BWtQNJeE7zJ45pTy5
4. The PDF has to be only one file (Size should be less than 10 MB) and not
the number of sheets used for doing the assignment.
5. The format for naming your assignment will be:
Sec_classrollno_Name
For Example-O_34_AmitKumar
6. Naming should be done in the given format only. Otherwise it will not be
accepted.
7. Date of submission- 20/7/2021

Assignment 2

Q1. Write a C program in input n elements inside and array using pointer. Assume an
integer sum and find the pair of integers in the array whose sum is equal to ‘sum’ using
sum function and pass the reference of array to sum function.
Input: arr[]={1,5,7,-1}
Sum=6
Output: 2
Pairs with sum 6 are {1,5} and {7,1}
Q2. Write a C program and draw a flowchart to input a string and spilt the string using
a delimiter with using a user-defined function split. (Implement it without using string
library function)
Input: graphic-era-university
Delimiter: ‘- ‘
Output: graphic era university
Q3. Show the use of all dynamic memory allocation function using a C program with
explanation.
Q4. Write a C program and draw a flowchart to create a structure STUDENT having
members roll no, name, section and marks in 5 subjects for n students. Calculate the
percentage of each student and arrange the record of n students in ascending order of
percentage.
Q5. Write a C program to input a paragraph inside a file “Encrypte.txt” in an encrypted
way. Read the same file and write the contents on console after decrypting the contents.
Inputted Text: MY NAME IS XYZ.
Content of Encrypte.txt: JV KXJB FP UVW.
Output: MY NAME IS XYZ.

You might also like