3. 120 pts. Fill in the space below each single line comment with the correctinf
ID: 3881962 • Letter: 3
Question
3. 120 pts. Fill in the space below each single line comment with the correctinformation II List all necessary includes (you will most likely add as you read the direcives gven void main(void)U Il Correctly declare two file object pointers named: in 1 and out I/ Declare two arrays of char, a 1 dimension of 54 bytes and a 2 dimension (160x 480) of the corect of bytes: // Open a binary file named input.x for input and assign the returned value to in. 1 as declaredabovwe. // Open a binary file named outputx for output andassgn the retue eadeced // Read 54 bytes from input.x into the 1 dimensional array using the variable declared above: // Fill the 2D array by continuing to correctly read from input. // Write all necessary statements to properly clean up (or condludel what s // have done: // Write all necessary code to send all the data contained in the 2Darray to outputx:Explanation / Answer
1. #include<stdio.h>
2. File *in_1;
File *out_1;
3. char array[54]; and char array[160][480];
4. File *in_1;
in_1 = fopen("input.x", "r");
5. File *out_1;
out_1 = fopen("output.x","r";
6. File *in_1;
in_1 = fopen( "input.x", "r");
{
fseek(in_1, 0, SEEK_END);
fgets ( array, 54 , in_1);
fclose(in_1);
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.