Void returnLastItem(ItemType& item) { int location=0; if(//the pointer in the last item is NULL then execute(i dont know how to write this)) item = info[location];//i think this is to print }