1.

What happens when no argument is supplied to reset() function?(a) All bits are set to 1 in a bitset(b) All bits are set to 0 in a bitset(c) All alternate bits are set to 0 in a bitset(d) First bit is set to 0I have been asked this question in my homework.I want to ask this question from Bitset in section Class Hierarchies, Library & Containers of C++

Answer» RIGHT option is (b) All bits are SET to 0 in a BITSET

For explanation: When no argument is SUPPLIED to reset() FUNCTION i.e. function is called with empty parameters then all the bits of the bitset is set to 0.


Discussion

No Comment Found

Related InterviewSolutions