Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
c union bytes affected
//gcc 5.4.0 #include <stdio.h> #include <stdint.h> union { uint64_t u64; uint8_t u8; } my_union; int main(void) { my_union.u64 = 0; printf("bits: 0x%08x\n", my_union.u64); my_union.u64 = ~0; printf("bits: 0x%08x\n", my_union.u64); //notice how most significant 7 bytes of union unaffected. my_union.u8 = 0; printf("bits: 0x%08x\n", my_union.u64); return 0; }
run
|
edit
|
history
|
help
1
BSEARCH() WITH STRUCT
Star 1,3
Print Bash Version.c
Project 3 part 2 Book v1
detonadisimo
Prime check
C_141113_dividirRestasSucesivas
Add c
150109_RecursividadPrimo
Leap year check