1.

What is the use of reset function in bitset?(a) Used to make alternate bits zero(b) Used to make a bit 0 in a bitset(c) Used to make all bits 1(d) Used to make a bit(s) 0 in a bitsetThis question was addressed to me in an online interview.My query is from Bitset in section Class Hierarchies, Library & Containers of C++

Answer»

The correct choice is (d) USED to make a bit(s) 0 in a BITSET

Easiest explanation - header provides the RESET() FUNCTION to set bit(s) to 0 in a bitset variable.



Discussion

No Comment Found

Related InterviewSolutions