Page 1 of 1

Reposting someone else's question will be reported as abuse/inappropriate. Thank you. Need help understanding how to fil

Posted: Thu May 05, 2022 1:17 pm
by answerhappygod
Reposting someone else's question will be reported as
abuse/inappropriate. Thank you. Need help understanding
how to fill out hexadump table based on potter.dat file. Do not
have access to potter.dat, must solve with given information.
Reposting Someone Else S Question Will Be Reported As Abuse Inappropriate Thank You Need Help Understanding How To Fil 1
Reposting Someone Else S Question Will Be Reported As Abuse Inappropriate Thank You Need Help Understanding How To Fil 1 (201.48 KiB) Viewed 35 times
6. (10 points) Consider the following shell session: elvin2:~/Rom at ReadData.c #include <stdio.h> #include <string.h> typedef struct { inits [5]; } info; int main(int argc, char *argv[]) { info data; FILE *datastream; datastream = fopen (argv[1], "r"); while (fread (&data, sizeof (info), 1, datastream) == 1) { printf("%d %s\n", data.num, data.inits); } fclose(datastream); return 0; } ~/Roven/Close -c potter.dat 32 potter.dat elvix2:~/Rowan/Class/LabTech/Exams/FilesBinary 121> ./ReadData potter.dat 1 - SS 3 POA 2 COS 4 - GoF Fill in the grid with the exact hexadecimal values of each byte in the file potter.dat, one byte per cell. If a value is not knowable, put '?'. For the first byte past the end of file, put 'EOF' in that box and draw a line through the remaining blocks. (For character data, you can write the character instead of the ASCII value in hex.) The grid is 16 blocks wide; the columns have been numbered, and the rows are marked with their start values. Byte 0, the first byte in the file, goes in the upper-left. Byte 1, the second byte in the file, goes in Row 0x00, Column 1. Byte 16 goes in Row 0x10, Column 0. Byte 17 goes in Row 0x10, Column 1. (Because Ox10 is 16, plus 1 is 17.) 01 2 3 4 5 6 7 8 9 a b С d e f 0x00 0x10 0x20 0x30 short int num; char ܫܥܪ