3 ms·
It was / is a very straightforward question. Given this C fragment: u16 x = 1; u8 * px = (u8 *)&x; What byte does px point to? LSB orders means that it po
by nine_k 2y ago
It was / is a very straightforward question. Given this C fragment:
u16 x = 1;
u8 * px = (u8 *)&x;
What byte does px point to? LSB orders means that it points to the least significant byte (that has value 1); MSB order means it points to the most significant byte (value 0).
- Y_Y 2y agoint* x; // x is an int-pointer int *y; // dereferencing y gives an int int * z; // int multiplied by z I'm being silly, but floating the the asterisk between the type and the identifier gives me the same feeling as the "array indices start at 0.5" compromise mentioned earlier. (For the record, the second way is the universal and objective truth.)
- ireflect 2y agoBut when you say "the second way" are you counting from zero or from one?