#include <iostream>                           
#include <cstring>                             

int main()
{
    char x[6] = {0};
    int y = 0x48656c6c6f;
    
    std::memcpy(x, &y, sizeof y);
    
    for (char c : x)
        std::cout << c;
}