Hi!

say I have a char *c pointing to an array of 10 bytes.

When i do (int *)c++ (increment before typecast -- forget the brackets for
nw), and equate it t  an int *i then

*i will return 2nd to fifth bytes as integer. Is this correct ?

And supose the typecase is beore the incerenent like so :
((int *)c)++ then *i will return 5th to 8th byes. is this correct ?


aslo how is exception handling implemented ? Does the processor have
exception registers ?

Also if I have allocated a struct liek :

struct {
        int i;
        char b;
}str;

which is obviously 5 butes large.

Than whenre will the proceessor allocate the next bit of memory ?

Directly after the char b byte?


Reply via email to