Lab Assignment 11: Use The Concept of Structures Discuss The Concepts of File Handling

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
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 dot operator and arrow operator for structures.

 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