5 Jun 2014 by Sergey Alexandrovich Kryukov
No. Everything is correct. Here is the thing: you are not type-casting a pointer; you are type-casting the byte. Here is what happens, if we break it into smaller steps:// type of cast1 is uint8_t*// therefore, type of cast1[5] is uint8_t, so:uint8_t someByte = cast1[5];uint32_t x =...