Given the following piece of code: typedef struct { char name [10]; char surname [10]; float score; } student; student *s, vet [10]; Suppose that your system is a 64-bit machine, and float variables...

i need ans as fast as possible. i will be very glad for you for forever. thank u
Given the following piece of code:<br>typedef struct {<br>char name [10];<br>char surname [10];<br>float score;<br>} student;<br>student *s, vet [10];<br>Suppose that your system is a 64-bit machine, and float variables occupy 32 bit. Assume that both the variable s and the array vet have been initialized (even if the<br>corresponding code is not shown). Answer the following questions:<br>A) Which is the memory occupation in Byte of the variable s?<br>B) Which is the memory occupation in Byte of the array vet?<br>C) Are the following lines of code correct? Say yes/no to each. In case the answer is no, briefly say why.<br>1. st+;<br>2. s=vet;<br>3. vet+=2;<br>4. s=*vet;<br>B<br>I<br>A) Which is the memory occupation in Byte of the variable s?<br>B) Which is the memory occupation in Byte of the array vet?<br>C) Are the following lines of code correct? Say yes/no to each. In case the answer is no, briefly say why.<br>1. s++;<br>2. 3=vet;<br>3. vet+-2;<br>4. 3vet;<br>

Extracted text: Given the following piece of code: typedef struct { char name [10]; char surname [10]; float score; } student; student *s, vet [10]; Suppose that your system is a 64-bit machine, and float variables occupy 32 bit. Assume that both the variable s and the array vet have been initialized (even if the corresponding code is not shown). Answer the following questions: A) Which is the memory occupation in Byte of the variable s? B) Which is the memory occupation in Byte of the array vet? C) Are the following lines of code correct? Say yes/no to each. In case the answer is no, briefly say why. 1. st+; 2. s=vet; 3. vet+=2; 4. s=*vet; B I A) Which is the memory occupation in Byte of the variable s? B) Which is the memory occupation in Byte of the array vet? C) Are the following lines of code correct? Say yes/no to each. In case the answer is no, briefly say why. 1. s++; 2. 3=vet; 3. vet+-2; 4. 3vet;

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here