Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

for struct it\'s char char int int 12] 11 character student id declared major (e

ID: 3795545 • Letter: F

Question


for struct it's
char
char
int
int

12] 11 character student id declared major (e.g., MAT) Total earned grade points Total earned credit hours Student; Student studeatMHeli a. What is the size of one element of the studentM array? b. What is the total size of the studentM array? c. Fill in the following table Referenced Attribute the ress O referenced attribute studentNTST.5ZStudentOd student T5J.SZMajor d. FilI in the owing ta e with a formula Referenced Attribute Address of the referenced attribute StudentMTIT.5ZStudent id Cred tudent

Explanation / Answer

a)   size of 1 member of studentM, it is 24 .

in c++, size of int data type is 4.  size of char data type is 1

char szStudentId [12] // 12*1= 12

char szMajor [4] // 4*1 = 4

int IGradePoint // 1*4 = 4

int iCreditHours // 1*4 = 4

   studentM has 12 members. here the question is about the size of 1 member of studentM, it is 24 .

b ) Total size of the studentM array is 240.

   studentM [10] // studentM has 10 elements.

size of 1 member of studentM 24 . so, 10*24 = 240

************************END**************PLS GIVE ME GOOD RATING*********************************************