DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   C (http://www.daniweb.com/forums/forum118.html)
-   -   need help!!! (http://www.daniweb.com/forums/thread159499.html)

atman Nov 25th, 2008 7:44 pm
need help!!!
 
hello.,
ny1 knows what is the data type for displaying hex numbers? i know that specifier is %x, but dont know what data type it is
ex: 0xBCD

thanx!

devnar Nov 25th, 2008 8:02 pm
Re: need help!!!
 
You declare it as an integer.
Ex:
int hex = 0xBCD;
printf("%x",hex);


All times are GMT -4. The time now is 6:53 pm.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC