logo

Crowdly

Nếu tập tin “source.txt” chứa dòng “Be my friend”, kết quả trên màn hình sẽ là g...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Nếu tập tin “source.txt” chứa dòng “Be my friend”, kết quả trên màn hình sẽ là gì sau khi thực hiện đoạn mã lệnh sau đây:

#include<stdio.h>

 

int main()

{

   

FILE *fs, *ft;

   

char c[10];

   

fs = fopen("source.txt", "r");

   

c[0] = getc(fs);

   

fseek(fs, 0, SEEK_END);

   

fseek(fs, -3L, SEEK_CUR);

   

fgets(c, 5, fs);

   

puts(c);

   

return 0;

}

0%
0%
100%
0%
More questions like this

Want instant access to all verified answers on lms.rdi.edu.vn?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!