Die folgende Ableitung aus dieser Frage, ist jedoch unterschiedlich < /p>
Betrachten Sie das folgende Code -Beispiel;uint32_t *value = malloc(sizeof(uint32_t));
*value = 0xAAAABBBB;
int16_t *subset = (int16_t*) (value);
uint32_t test = 0x00000000;
uint32_t test2 = 0x00000000;
// IMPORTANT!!!!
// *subset vs *subset & 0xFFFF
test = (*subset
Bitgewise Operations außerhalb der Typbreite in C; Compiler -Fehler oder innerhalb der Spezifikation? [Duplikat] ⇐ Linux
-
- Similar Topics
- Replies
- Views
- Last post