Page 1 of 1

INSTRUCTIONS: Given the contents of BOOK.TXT below, write the exact contents of iReadThis1 and iReadThis2 AFTER Line 1

Posted: Tue Jul 05, 2022 10:25 am
by answerhappygod
INSTRUCTIONS:Given the contentsof BOOK.TXT below, write the exactcontentsof iReadThis1 and iReadThis2 AFTER Line12 has been executed. If the code template is syntacticallyincorrect, write INVALID (in all capital letters).CONTENTS OF BOOK.TXTCHAPTER 17 | ARTHUR | PG 192 CODE 1 int main() { 2 FILE *fp; 3 char iReadThis1[ 30 ]; 4 int iReadThis2; 5 6 fp = fopen("BOOK.TXT", "r"); 7 fscanf(fp, "%s%d", iReadThis1, &iReadThis2); 8 fclose(fp); 9 10 fp = fopen("BOOK.TXT", "r");11 fscanf(fp, "%s", iReadThis1);12 fclose(fp);13 14 return 0;15 }QUESTIONSCONTENTS OF iReadThis1: CONTENTS OF iReadThis2: