By declaring a pointer as constant you can restrict the movement of pointer. For example: int x, y; int *const p = &x;
Now , if p++ will not work since the movement of pointer p is restricted.
Result should be stored in new linked list.