Hi,
I am mucking around with pointers in a project and got a questions. The code below is not complete but it illustrates what i dont get.
main(){
/* defined elsewhere */
struct aStruct *f=NULL, **ff = NULL, ***fff = NULL;
f = getStruct(); /* gets a struct using malloc */
/* I dont get why i have to asign the address of the pointer
since f already is a pointer and i though a pointer is a
address and ff=f would do */
ff = &f;
(*fff)->x=54321;
etc...
/* Same here. I dont get why i have to asigne the address
of the pointer since i though a pointer is a address and
fff=ff would do */
fff = &ff
(**fff)->x=12345;
etc....
free(f);
}
G'n'R