A
arvind
hi,
How do I display a number in binary or octagonal ?
eg.
int a= 195; //1100 0011
int b = 87; //0101 0111
int c = a&b;//0100 0011 => bitwise and
printf("%0x", c); // Here I get the hexagonal output
//I want to get the binary output of char c
// I also want the Octagonal Outpur of char c
Please let me how to the output in the binary and octagonal form.
Thanks in advance,
-arvind
How do I display a number in binary or octagonal ?
eg.
int a= 195; //1100 0011
int b = 87; //0101 0111
int c = a&b;//0100 0011 => bitwise and
printf("%0x", c); // Here I get the hexagonal output
//I want to get the binary output of char c
// I also want the Octagonal Outpur of char c
Please let me how to the output in the binary and octagonal form.
Thanks in advance,
-arvind