Question: Write a C program to do the following 1 . Create two text files Text 1 and Text 2 with some texts ii . Get

Write a C program to do the following
1. Create two text files Text1 and Text2 with some texts
ii. Get the position p and number of characters n to extract the characters from the Text1 and Text 2 using random processing
iii. If the characters in the extracted are same it has to print The Characters in the positions of both the files are same Else it has to print The Characters in the positions of both the files are not same
Example
Assume that Text1 file contains the text as abcdefghijk and the Text2 file contains the text as ABCdefGHIJKLMN
Case 1: If p=4 and n=3, it has to print The Characters in the positions of both the files are same (the characters def are matching)
Case 2 if p=2 and n=3, it has to print The Characters in the positions of both the files are not same (the characters are not matching, bed not = BCd)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!