bitset in C

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



have a C++ program .I am a novice 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?
 
-- 
Rudra
JRF; SNBNCBS
http://www.bose.res.in/~rudra

A bus station is where a bus stops. A train station is where a train
stops. On my desk I have a work  station.

Please, if possible, don't  send me MS Word or PowerPoint attachments 
Why?See:  http://www.gnu.org/philosophy/no-word-attachments.html


      From Chandigarh to Chennai - find friends all over India. Go to http://in.promos.yahoo.com/groups/citygroups/



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux