Usually temp variables are used for swapping / re-organizing elements of a linked list.
However you will get a better answer if those question marks were replaced by real code.