Advertisement
rornoanparn

Untitled

Feb 26th, 2020
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.16 KB | None | 0 0
  1. void deleteLast(List &L, address P) {
  2.     address Q;
  3.     Q = first(L);
  4.     while (next(next(Q))!=NULL){
  5.         Q = next(Q);
  6.     }
  7.     next(Q)=P;
  8.     next(Q)=NULL;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement