Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

with c language Q2 )File TEST.DAT contains only the FOLLOWING CHARACTERS: 1 TEC 21 3 DATA ST RU CTUR E EOF Show the letter of

image text in transcribed

with c language

Q2 )File TEST.DAT contains only the FOLLOWING CHARACTERS: 1 TEC 21 3 DATA ST RU CTUR E EOF Show the letter of the alphabet that the ch indicates after executing the given instructions. FILE *fp; charch, fp = fopen("TEST.DAT","rb+"); fseek(fp,-2,SEEK_END); ch = getc(fp); printf(" \t %c",ch), fseek(fp,-5, SEEK_CUR); ch = getc(fp), printf(" \t %c",ch), ch = getcifp); printf(" \t %c",ch), fseek (fp,OL,SEEK_SET), ch= getcifp); printf(" \t %c",ch), fseek(fp, 6L,SEEK_CUR); ch = getclfp); printf(" \t %6c",ch); ch=gete(fp); printf(" \t %c",ch); fseekifp,-2,SEEK_CUR); ch = getcifp); printf(" \t %c",ch), fseekfp,4L, SEEK_CUR), ch = getcifp); printf(" \t%c",ch), fseek(fp,-1L, SEEK_CUR); ch = getc(fp), printf(" \t %c",ch), fclose(fp)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

To find integral of sin(logx) .

Answered: 1 week ago