Ok, heres my problem.
I made an array of pointers to structures, i initalized the array of pointers to structures by using the address operators to obtain the addresses of the array.
so i did something like this:
when i run the code i get a SIGBUS error, which if i remeber correctly is telling you that you are accessing memory that you are not supposed to. So what i am i doing wrong? I want to point to the char at [0][0] in structure that is in an array of pointers to structs. If anybody could shed some light on what i am doing wrong that would be great!Code:struct bla blaStruct1 = { //ect }; struct bla blaStruct2 = { //ect }; struct bla blaStruct3 = { //ect }; struct bla *ptrs[] = {&blaStruct1, &blaStruct2, &blaStruct3}; char *x = &ptrs[0]->atwodemensionalstringarray[0][0];