#include <iostream>
using std::cout;
using std::endl;
union Test {
Test(int number);
void show(void);
int n;
char arr[4];
};
Test::Test(int number)
{
n = number;
}
void Test::show(void)
{
cout << arr[0] << " ";
cout << arr[1] << "";
cout << arr[2] << "";
cout << arr[3] << endl;
}
int main(void)
{
Test u1(97);
u1.show();
Test u2(987);
u2.show();
return 0;
}
/*
run:
a
█ ♥
*/