Programming In CPU Spring
a) Differentiate between union and structure. Write a program he ied the records of n students (roll no., name, per, address) using s ruc! and display the records of those student whose address in…
7- a) Differentiate between union and structure. Write a program he ied the records of n students (roll no., name, per, address) using s ruc! and display the records of those student whose address in Chitwan. ;
- b) Why file handling is necessary? Consider the following si RolINo [Name [Adéress [Program | Pat sodas Write a program to create a ‘students.txt' file to store the records of 200 students and display the information of students who were born in 2004. é
A worked answer is on its wayMeanwhile, read the Programming In C notes for this topic.
Discussion
Loading…
More Programming In C questions
a) What are the properties of a good algorithm? Write an algorithm and = draw a neat flowchart to input a number and check whether it is even and divisible by…PU Spring 202315a) How does else if ladder work? Explain with its general syntax, flowchart and a simple program. b) Compute the total labor cost for building wall of 50…PU Spring 202315a) Write a program to find the sum of n terms of the series : Levttt........4x", by asking the values of and x from user. b) What is the advantage of an array…PU Spring 202315a) What are the header files? Explain their roles in a program. 9. b) What is a recursive function? Write a recursive function to generate the 10 terms of…PU Spring 20238a) Write a program to pass the elements of an array to a function using pointer and use the function to find the sum of the elements and print the sum. b) How…PU Spring 20237a) Create a structure called student with data members name, rollno and college for 10 students. Display the name of the students who study at SoE. b) What…PU Spring 202315