need help!!!

Thread Solved

Join Date: Oct 2008
Posts: 48
Reputation: atman is an unknown quantity at this point 
Solved Threads: 0
atman atman is offline Offline
Light Poster

need help!!!

 
0
  #1
Nov 25th, 2008
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!
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 146
Reputation: devnar will become famous soon enough devnar will become famous soon enough 
Solved Threads: 16
devnar's Avatar
devnar devnar is offline Offline
Junior Poster

Re: need help!!!

 
0
  #2
Nov 25th, 2008
You declare it as an integer.
Ex:
  1. int hex = 0xBCD;
  2. printf("%x",hex);
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC