I'm trying understand how one can access more of memory by typecasting. From watching this video...
https://www.youtube.com/watch?v=ldN5i6MMquM
It sounds like I can typecast a pointer to uint16_t to access 2 parts of a 8 bit addressed memory array. I can't seem to access more than 8 bits and I'm not sure how to write it in c in order to be able to access two bytes instead of one. I started out with something like below
uint8_t *memory = (uint8_t*) malloc(8);
memory[0] = 5;
memory[1] = 21;
memory[2] = 4;
memory[3] = 9;
memory[4] = 23;
memory[5] = 66;
memory[6] = 211;
memory[7] = 46;