I am studying for exam and I came across this statement. I have read couple of books and notes and so far i have not come across this and also i dont even know what to call it so i have not able to find the answer.
Here it goes.
typedef struct {
unsigned a: 4;
unsigned b: 4;
} byte, *pByte;// what does *pbyte means here?
int main(){
pByte p = (pByte)x; // this is typecasting void pointer. how does it work with *pbyte
byte temp;
unsigned i;
for(i = 0u; i < n; i++) {
temp = p[i]; //again I have no idea why we suddenly have array
}
}
Again if i dont know something basic......well I dont know cause im still learning :) help me out please. thanks.