On executing the below program what will be the contents of 'target.txt' file if the source file contains a line 'To err is human'?#include int main() { int i, fss; char ch, source[20] = 'source.txt', target[20]='target.txt', t; FILE *fs, *ft; fs = fopen(source, 'r'); ft = fopen(target, 'w'); while(1) { ch=getc(fs); if(ch==EOF) break; else { fseek(fs, 4L, SEEK_CUR); fputc(ch, ft); } } return 0; } - Study24x7
Social learning Network
28 Feb 2023 10:23 AM study24x7 study24x7

On executing the below program what will be the contents of 'target.txt' file if the source file contains a line "To err is human"?#include<stdio.h> int main() { int i, fss; char ch, source[20] = "source.txt", target[20]="target.txt", t; FILE *fs, *ft; fs =...

See more

A

r n

B

Trh

C

err

D

None of above

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles