1. How large is the Person struct on a 32-bit machine? a)36 bytes b)38 bytes c)4
ID: 670210 • Letter: 1
Question
1. How large is the Person struct on a 32-bit machine?
a)36 bytes
b)38 bytes
c)40 bytes
d)42 bytes
2. Which of the following is equal to y->id?
a)&y->id
b)&x.id
c)x.id
d)*x->id
3. Which of the following is a valid replacement for line 7?
a)scanf(“%c”, &x->gender);
b)scanf(“%c”, &((*y).gender));
c)scanf(“%c”, x.gender);
d)scanf(“%s”, &y->gender);
4. If we input “Greg” for the name. What is the value of
*(y->name)?
a)The address of the array containing “Greg”
b)‘G’
c)The address of y
d)Undefined
5. What is the type of (&*y->name)?
a)char
b)struct Person*
c)char**
d)char*
Could u help me to solve these questions?
Explanation / Answer
1) 36 bytes
2) x.id
3) scanf(“%c”, x.gender);
4)Undefined
5)char**
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.