#include <stdio.h>
#include <string.h>void f(){
int i = 10;
char x[4] = {0};
memcpy(x, &i, 4);
printf(" %X ",x[0]);
printf(" %X ",x[1]);
printf(" %X ",x[2]);
printf(" %X ",x[3]);
}
int main(){
f();
return 0;
}
#include <stdio.h>
#include <string.h>