i know that *ptr changes in the end of the what1Code:item *what1(item *head, item *start, item *end) { item *temp; if (head == start) head =end; else{ temp=head; while(temp->next != start) temp= temp->next; temp->next = end; } temp = start; while(start!=end){ start=start->next; temp->next=end->next; end->next = temp; temp=start; } return head; } item *what2(item *head){ item *start, *end, *rest_list; start = head; while ((start!=NULL) && (start->next !=NULL)){ if(start->key =='-') start=start->next; else{ end=start; while((end->next!=NULL) &&(end->next->key !='-')) end=end->next; rest_list = end->next; head = what1(head,start, end); start = rest_list; } } while (end->next !=NULL) end = end->next; head = what1(head,head, end); return head; }
astrix part of a pointer changes in the end of a function.
so when i call what1,does the parameters point to the same place as before the what1 call,or the parameters change and point to the place in the end of what1
??