Gast
#2052500
Hallo,
Ich habe da mal eine Frage;-)
Es handelt sich um ein 32bit System. Ein Integer belegt somit 4Byte.
Annahme: Big Endian
void Copy(unsigned int* pSource)
{
unsigned char bArray[4] = {1,2,3,4};
memcpy(pTarget, bArray, 4);
}
Wie sieht der Speicher danach aus ?
So???
0x01
0x02
0x03
0x04
oder so???
0x00
0x00
0x00
0x01
0x00
0x00
0x00
0x02
0x00
0x00
0x00
0x03
0x00
0x00
0x00
0x04
Gruß,
Hans