Author: Unknown
Subject: Bit fields followup
Date: Thursday, 12 Nov 2020, 09:52:01
Can you explain why putting k second rather than third (in
the following struct) will make a difference?
> typedef struct
> {
> unsigned int code : 24;
> unsigned int prefix : 24;
> char k : 8;
> } tableEntry;
Also I found that in order to pass test 18 (All storage
reachable), all the bits add up together must be a multiple
of 8, I was wondering why?
PREV
INDEX
NEXT