If you need to write code like this, you are in trouble for portability; you should probably develop a structure with separate flags, and use these instead of Pointers.
Object oriented design questions are very important, as they demonstrate the quality of a candidate's code a poor performance on this type of question raises serious red flags.
You can learn to recognize bug patterns as the sum of their parts, so that certain signals will act as red flags when you're writing code or during code reviews.