1.

What is the default value of a bitset?(a) All bits are 0(b) All bits are 1(c) Leftmost bit is 0(d) Rightmost bit is 0This question was addressed to me in an interview.My doubt is from Bitset topic in division Class Hierarchies, Library & Containers of C++

Answer»

Correct CHOICE is (a) All BITS are 0

Explanation: By default, all the bits of a BITSET variable is set to 0 i.e. the VALUE of bitset variable is 0.



Discussion

No Comment Found

Related InterviewSolutions