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!
You declare it as an integer.
Ex:
int hex = 0xBCD;
printf("%x",hex);
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.