0% found this document useful (0 votes)
26 views1 page

1CSM1 PPSC T12 AY2023-2024 Pointers and Files

The document provides a tutorial on pointers and files in C programming. It lists 12 problems related to pointers and file handling and asks students to write code to solve each problem. The problems cover topics like swapping numbers, finding average, reading and writing files, copying files, analyzing file content, and merging files.

Uploaded by

i Don't know
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views1 page

1CSM1 PPSC T12 AY2023-2024 Pointers and Files

The document provides a tutorial on pointers and files in C programming. It lists 12 problems related to pointers and file handling and asks students to write code to solve each problem. The problems cover topics like swapping numbers, finding average, reading and writing files, copying files, analyzing file content, and merging files.

Uploaded by

i Don't know
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING (Networks)

KAKATIYA INSTITUTE OF TECHNOLOGY & SCIENCE, WARANGAL


(An Autonomous Institute under Kakatiya University, Warangal)

Tutorial 12 (T12)
(UNIT – IV)

U18CS102 – CSE (AI & ML)-II


Course Code – Name Programming for Branch – Section CSE (CSO)-I
Problem Solving using C
Tutorial Sheet posted on 26.11.2023 Tutorial class scheduled CSM-05.12.2023 (B2),
CourseWeb on on 08.12.2023(B1)

Pointers and Files in UNIT_IV


Topics covered

Problem
Answer the following questions. CO CDLL
No
[1] Write the code to swap 2 given numbers using pointers CO4 [Ap]

[2] Write the code to find average of all array values using pointers CO4 [Ap]
to array.
[3] Write a program to read the file name and display the file CO4 [Ap]
content on the console.
[4] Write a program to read the file name from the user and create CO4 [Ap]
its copy, the new file name should also be the user input.
[5] Write a program to read the file content and display the count CO4 [Ap]
of alphabets, digits, spaces, no.of lines and special characters
in it.
[6] Write a program to read a student’s details and store the details CO4 [Ap]
in a file.
Self Practice Questions
[7] Write the code to find greatest of 2 numbers using pointers.
[8] Write a program to read a file and create N number of CO4 [Ap]
duplicates.
[9] Write a program to read the student details from the file and CO4 [Ap]
display only the selected rollnumber.
[10] Write a program to flip the case of the alphabets of a given file CO4 [Ap]
name
[11] Write a program to merge two files into single file. CO4 [Ap]

[12] Consider a file containing alphabets and numbers. You must CO4 [Ap]
develop a program which reads the content of the file and write
the content on to the output screen if it is a number otherwise
write the content into another file.

Course Faculty:
I.Sai Rama Krishna,
Assistant Professor,
Dept. of CSE (Networks)

You might also like