1. marital status married/ unmarried
2. gender male/female
which of the below structures suits best?
char m_stats, gender;
int m_stats, gender;
for storing marital status married/ unmarried one bit is sufficient, if bit is 0 we can assume unmarried and if it is 1 we can assume married. same rule we can apply for gender also 0 for female and 1 for male. so maximum 2 bits are sufficient to store this data. so option 4 is sufficient.
Back To Top