You are on page 1of 1

Lab Assignment 11

Note:

• Use the concept of structures

• Discuss the concepts of file handling

• Use arrays to input and output 3 names, roll numbers and marks.
• Repeat the same problem using structures.
• WAP to initialize structures, copy one structure whole another and also just
few variables of one structure into another.
• Implement nested structures.
• Implement dot operator and arrow operator for structures.
• Practice file pointers using functions seekp(), seekg(), tellp() and tellg().

• Write a C program to count:


a) Number of characters in a file
b) Number of words in a file
c) Number of lines in a file

• How would you copy the contents of a file into another file using C program?

You might also like