Page 1 of 1

Consider the following lines of code: FILE *fp = fopen("another_file.txt", "w"); fprintf(fp, "Hello!\n"); What happens h

Posted: Sat May 14, 2022 4:01 pm
by answerhappygod
Consider the following lines of code:
FILE *fp = fopen("another_file.txt", "w");
fprintf(fp, "Hello!\n");
What happens here if another_file.txt already exists?