As Rajesh said, your computer is a binary device and so all data is stored as binary. Here is some code that displays an 8 bit data as binary. You can extend the same for any other data type.
for (unsigned i = 0; i < 8; ++i)
cout << (datatype & (1 << i)) ? '1' : '0';
«_Superman_» _I love work. It gives me something to do between weekends.
_Microsoft MVP (Visual C++)
Polymorphism in C