InterviewSolution
Saved Bookmarks
| 1. |
Indexing of bitset variables starts from ___________(a) leftmost bit(b) rightmost bit(c) same as in an array(d) frontThis question was addressed to me in an online interview.Question is taken from Bitset topic in division Class Hierarchies, Library & Containers of C++ |
|
Answer» RIGHT OPTION is (B) rightmost bit The explanation: The indexing of bitset variable starts from rightmost bit i.e. if you have b = 1100 as your bitset then b[0] = 0, not 1. |
|