PRF192_-_S6_-_SU_2023_-_FE_452.webp
A

PRF192_-_S6_-_SU_2023_-_FE_452.webp

(Choose 1 answer)
FILE *fp = NULL;
fp = fopen("alpha.txt","w");
if (fp != NULL) {
fprintf(fp, "%s", "We are the world!");
fclose(fp);
} else printf("Failed to open file");
The above code is the correct structure to:
A. (1) connect to file, (2) open the file to write data, (3) write data to file, and (4) close the file
B. (1) connect to file, (2) open the file to read data, (3) read from file, and (4) close the file.
C. (1) connect to file, (2) open the file to read and write data, (3) write data to file, and (4) clc
D. (1) connect to file, (2) write data to file, (3)open the file to write data, and (4) close the file
Exit (11

Thông tin

Category
PRF192
Thêm bởi
Arata2004
Ngày thêm
Lượt xem
1,896
Lượt bình luận
10
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRF192_-_S6_-_SU_2023_-_FE_452.webp
File size
60.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom