InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is correct about any() function in bitset?(a) Returns true if the number of 1’s equal to the number of 0’s(b) Returns true if any bit is set 0(c) Returns true if any bit is set 1(d) Returns true only if all bits are 1The question was posed to me in an internship interview.Question is from Bitset in chapter Class Hierarchies, Library & Containers of C++ |
|
Answer» The correct choice is (c) Returns TRUE if any bit is SET 1 |
|