What are hh and kk? Are those strings? Could you post the entire code segment?
Meanwhile, you can assign the address of a pointer to another pointer (a pointer to a pointer) and use it like so:
Code:
{
char *ptr = "this is a string";
char **pptr = &ptr;
printf("The string is: %s\n", *pptr);
printf("The first character of the string is: %c\n", (*pptr)[0]);
printf("pptr: %p, *pptr: %p, &ptr: %p, ptr: %p\n",
pptr, *pptr, &ptr, ptr);
}
Which should output:
The string is: this is a string
The first character of the string is: t
pptr: 0xbffff784, *pptr: 0x80484ac, &ptr: 0xbffff784, ptr: 0x80484ac
You can see that the address pptr points to is the address of the ptr pointer.