Apple Interview Question
964 Interview Reviews |
Back to all Apple Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Apple:
Given the following struct how much memory is require to store it in a 32-bit and 64-bit system? struct A { char t; char *t; }
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
8 of 8 people found this helpful
so the size of the structures would be:
64 on 32-bit
128 on 64-bit
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up
0 of 2 people found this helpful
by Interview Candidate:
64-bit: 64 for pointer + 8 for char = 72 bits
The size of the car can very from system to system, the important part is that you can explain why you say a number.