Advertisement
Guest User

Untitled

a guest
Nov 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1.  
  2. #include "LL-func.h"
  3. #include <stdlib.h>
  4. #include <stdio.h>
  5. #include <assert.h>
  6.  
  7. int main (void){
  8.  
  9. LL_t* arr = LLcreate();
  10. //LLappend(arr,5);
  11. for(int i=0;i<5;i++){
  12. // LLappend(arr, i);
  13. //LLappend(arr,0);
  14. LLappend(arr,0);
  15.  
  16. }
  17.  
  18. //LLappend(arr, 0);
  19. LLprint(arr);
  20. //reverse(arr);
  21. LLprint(arr);
  22. //LLprint(arr);
  23. //printf("removing num\n");
  24. //removeNumber(arr, 0);
  25. LLprint(arr);
  26. //removeNumber(arr, 0);
  27. //removeNumber(arr, 11);
  28. //LLprint(arr);
  29. int res = numberOfEvens(arr);
  30. printf("even is %d\n", res);
  31. //spliceinto(arr, 100, 9);
  32. //LLprint(arr);
  33. //LLprint(arr);
  34.  
  35. return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement