Задан файл, содержащий список названий и стоимости мониторов:
В результате выполнения какой программы на экран будет выведена информация о пункте (2) из списка?
(Отметьте один правильный вариант ответа.)
Варианты ответа
int main( void ){ FILE *stream; char str[81]; int result; if ( fopen_s( &stream, "g:\\list.txt", "r+" ) != 0 ) { printf( "The file list.txt was not opened\n" ); return -1; } result = fseek( stream, 0L, SEEK_SET); if( result ) perror( "Fseek failed" ); else { fgets( str, 80, stream ); printf( "%s", str ); } fclose( stream ); return 0;}
int main( void ){ FILE *stream; char str[81]; int result; if ( fopen_s( &stream, "g:\\list.txt", "r+" ) != 0 ) { printf( "The file list.txt was not opened\n" ); return -1; } result = fseek( stream, 37L, SEEK_SET); if( result ) perror( "Fseek failed" ); else { fgets( str, 80, stream ); printf( "%s", str ); } fclose( stream ); return 0;}
int main( void ){ FILE *stream; char str[81]; int result; if ( fopen_s( &stream, "g:\\list.txt", "r+" ) != 0 ) { printf( "The file list.txt was not opened\n" ); return -1; } result = fseek( stream, 38L, SEEK_SET); if( result ) perror( "Fseek failed" ); else { fgets( str, 80, stream ); printf( "%s", str ); } fclose( stream ); return 0;} (Верный ответ)

Чему будет равен символ