binary representation c 2b 2b

Solutions on MaxInterview for binary representation c 2b 2b by the best coders in the world

showing results for - "binary representation c 2b 2b"
Ariana
27 Mar 2018
1#include <bitset>
2...
3
4char a = -58;
5std::bitset<8> x(a);
6std::cout << x << '\n';
7
8short c = -315;
9std::bitset<16> y(c);
10std::cout << y << '\n';
11