You are on page 1of 1

Homework 4

Course: Foundations of Computing Code: CSE101

Date of Assignment: Date of Submission:

PART-A
Q1. How can you relate the function with the structure? Explain with an appropriate
example.

Q2. Explain the method of passing a structure by value as an argument to a function with an
example of prototype function declaration, function call.

Q3. Where self-referential structures find their applications? Explain.

PART-B
Q4. Is it necessary that a file created in text mode must always be opened in text mode for
subsequent operations? What is the appropriate answer? Explain with example.

Q5. How a structure is different from an array & union?

Q6. WAP that prompts the user to input name of a text file, read the text file & output
number of vowels and words in the text.

Q7. Write a program to copy the contents of one FILE into another FILE.

You might also like