sprintf
sprintf(str,“%x”, num);
#include <stdio.h>
int main( ) {
unsigned char num=100;
unsigned char xx[1];
sprintf(xx,"%x", num);
printf("dat: %s",xx);
// printf("Hello, World!\n");
return(0);
}
sprintf
sprintf(str,“%x”, num);
#include <stdio.h>
int main( ) {
unsigned char num=100;
unsigned char xx[1];
sprintf(xx,"%x", num);
printf("dat: %s",xx);
// printf("Hello, World!\n");
return(0);
}