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

I need help with this question: For the following C struct: struct student { int

ID: 3778039 • Letter: I

Question

I need help with this question:

For the following C struct:

struct student {

int studentId;

char name[50];

char major[20];

float gpa;

}

I need to draw a type descriptor for type student using the information needed in the symbol table to describe this type.

I have created this so far but I am unsure of what the scope would be for each of these or if this is the correct kind of table. I do not need code for this I just need to make the table like the one below but I don't know what the scope would be for any of them.

Symbol Name Type Scope student struct studentID int name char major char gpa float

Explanation / Answer

Symbol Name Type Scope student struct Global studentID int Struct element name char Struct element major char Struct element gpa float Struct element