char *ptr;
char temp[5];
temp="HELLO";
ptr=temp;
and here i have a function which sends in this pointer...
functionPtr(*ptr);
void functionPtr(char **ptr){
*ptr = '\0';
}
i'm quite confused now, is the line of code *ptr = '\0' pointing to the pointer in the main program or is it pointing directly to temp?