The file \"myfile\" contains exactly the 26 bytes representing the lowercase alp
ID: 3833344 • Letter: T
Question
The file "myfile" contains exactly the 26 bytes representing the lowercase alphabet asci codes a-z Complete the fseek () statement so that the fread() statement will read in the character 'y' from the file; char c; fseek(fpi, l, SEEK_SET); fread(&c;, l, l, fpi) Given the statement int mm[10][12][14]; circle all of the statement below that are true. (a) mm[1][1] is a an int (b) mm[1] is a pointer-to-pointer-to-int. (c) mm[0][0] is a pointer-to-pointer-to-int. (d) mm is a pointer-to-pointer-to-pointer-to-int. (e) mm is an int. (f) mm[0] is an int. Given the following code segment, if the user inputs the following text in quotes "my name is bob" from the keyboard, what is the printout to the screen? Char s1[10]; scanf("%s", s1); printf("%s ", sl); The following () statement executed successfully. What is the printed to the screen? Int n; n = fwrite(fptr, 10, 2, fptr); printf("%d ", n); What storage class is variable k? #include >stdio.h> int k; main() {} What is the printed to the screen? Union numbers {char letter; int number; double precise_num;}; union numbers num l; printf("%d ", sizeof(num l)); Using the knowledge from your programming projects, how many bytes are in the file "myfile"? main() {FILE *fpo; int I; fpo=fopen("myfile", "w"); for(i=0; IExplanation / Answer
2.
Given the statment int mm[10][12][14];
mm[x][y][z] is an integer directly being accessed. (value.)
mm[x][y] is a pointer to integers. (pointer to values. single pointer)
mm[x] is a pointer to pointer to integers. (pointer to pointers. double pointer)
mm is a pointer to pointer to pointer to integers. (triple pointer)
So, coming to your question:
a. *mm[1][1] is an int. True.
b. mm[1] is a pointer to pointer to integers. True.
c. mm[0][0] is a pointer pointer to integers. False. Its just a pointer to integers.
d. mm is a pointer to pointer to pointer to integers. True.
e. *mm is an int. False. It's a pointer to pointer to integers.
f. *mm[0] is an int. False. It's a pointer to integers.
3. This will print only the first string read i.e., my.
This is because, a space is a null terminating character in C, and will only read till that
point. So, the output is: "my"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.