Assignment-7

divider
Question-1

Q1. Use arrays to input and output 3 names, roll numbers and marks.

Question-2

Q2. Repeat the same problem using structures.

Question-3

Q3. WAP to initialize structures, copy one structure whole another and also just a few variables of one structure into another.

Question-4

Q4. Implement nested structures. Think about any real world application of nested structures.

Question-5

Q5. Implement dot operator and arrow operator for structures.

Question-6

Q6. Pass and return structure into other functions besides main().

Question-7

Q7. How would you swap two structures?

Question-8

Q8. Implement a simple union using a C program which contains an int, float and char array of 4 elements.

Question-9

Q9. Discuss the difference between structure and union? What is the advantage of each of them?