ObjectiveMcq
Print Protected
This page is protected for print. Use the website to view the content.
What will be the output of the following C++ code
#include <iostream>
#include <bitset>
using namespace std;
int main()
{
bitset<b1(95);
bitset<b2 = b1 << cout<<b}
Correct Answer: A — 00001101
^ operator is used to take xor of two bitset variables i.e. if ith bit in both varaibles are either 1 or 0 then answer is 0 otherwise answer is 1.