#include <stdio.h> void main(void) { float x = 25.3f; unsigned char* p = (unsigned char*) &x; for (int i = 0; i < 4; ++i) { printf_s("%02x ", *p++); } }