R
rudra
i have a C++ program
#include <bitset>
#include <iostream>
int main()
{
int i = 23356;
int j=~i;
printf("One's complement of i=%u is ~i=%u\n",i,~i);
std::cout << std::bitset<32>(i);
printf("\n");
std::cout << std::bitset<32>(j);
}
is there any equivalent way of bitset in C? or easier way of doing the
same thing in C?
#include <bitset>
#include <iostream>
int main()
{
int i = 23356;
int j=~i;
printf("One's complement of i=%u is ~i=%u\n",i,~i);
std::cout << std::bitset<32>(i);
printf("\n");
std::cout << std::bitset<32>(j);
}
is there any equivalent way of bitset in C? or easier way of doing the
same thing in C?