I am a college student and currently a beginner in C language. I would like to know how many bytes the following union types occupy. I asked ChatGPT, but its answer confused me. On my computer, your text
data of type int takes up four bytes. Thank you very much!
main()
{
union pw
{
unsigned char c;
unsigned int i[4];
}z;
z.i[0] = 0x39;
z.i[1] = 0x36;
printf("%c\n", z.c);
}