Answers for "binary representation c++"

C++
0

binary representation c++

#include <bitset>
...

char a = -58;
std::bitset<8> x(a);
std::cout << x << '\n';

short c = -315;
std::bitset<16> y(c);
std::cout << y << '\n';
Posted by: Guest on August-16-2021

Code answers related to "binary representation c++"

Browse Popular Code Answers by Language