Anda di halaman 1dari 1

Lab Assignment -6

UTA-007
Q1)Define a structure with the following three members: roll number, name and marks of student in 3
different subjects
1. Write a program to read and display the details of a student (with and without functions).
2. Write a program to read and display the details of 10 students. Use function search() to search all
to count and print details of students with same marks, a function to find average marks per subject, to
find average marks per student

Q2) Write a program to read a set of names, roll number, date of birth and date of admissions of the
students in a school from the keyboard where the date of birth and date of admission consists of three
members such as day, month and year, as a separate structure and display them

Q3)Write a program to read a set of names, roll number, date of birth and date of admissions of the
students in a school from the keyboard using a pointer structure operator where the date of birth and
date of admission consists of three members such as day, month and year, as a separate structure

Q4)Write a program to initialize the members of a union using integer and float data types and to display
the contents of the union.

Q5)Write a program to define the variables as declared by integer, float and character using typedef, and
to display the contents of the variable.