logo

Crowdly

Каков результат выполнения , если при создание бинарного файла numbers.bbb   по...

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

Каков результат выполнения , если при создание бинарного файла numbers.bbb   помещена последовательность целочисленных  значений:

4 6 7 -9 3 1 8 13 -7 -5 0 23 71

Код программы:

#include<fstream>

#include<iostream>

using namespace std;

int main()

{

int s, z;

ifstream

number("number.cpp",

ios::binary);

number.read((char*)&z, sizeof(int));

number.seekg(3*sizeof(int), ios_base::cur);

 number.read((char*)&s, sizeof(int));

fread (&s, sizeof(int), 1, f); 

cout<< s + z;

number.close
Image failed to load: яйцо
;

return 0;

}

More questions like this

Want instant access to all verified answers on newmoodle.amursu.ru?

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