Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - C language program for converting decimal integer into three-byte hexadecimal number
C language program for converting decimal integer into three-byte hexadecimal number
//#include "stdafx.h"//vc++6.0 add this line.

# contains "stdio.h"

Invalid primary (invalid) {

int n = 100000;

//scanf("%d ",& ampn); //Open and enter any integer.

printf("%02X %02X %02X\n ",(n & gt& gt 16); 255,(n & gt& gt8)& amp; 255,n & amp255);

}