Question: Consider the problem of padding the following structure, and answer the two questions below, assume that you are compiling on a system with a 32bit
Consider the problem of padding the following structure, and answer the two questions below, assume that you are compiling on a system with a 32bit architecture.
Struct task_struct
{
Char tag [3];
Int priority [3];
Char live;
Stryct list_head*children;
Int parent_pid;
};
1: what is the size of this struct as defined?
2:how much space would be wasted with word length padding?
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
