Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. void print(struct boxtype *Array[10])
  2. {
  3.  
  4. int k;
  5. int j;
  6. struct boxtype *b[10];
  7. b=Array;
  8. //This outer loop makes you go through all indexes
  9. for(k=0;k<10;k++)
  10. {
  11.  
  12. printf("Line %d", k);
  13. //This inner loop goes through each line of the array
  14. while(b!=NULL)
  15. {
  16.  
  17. printf("%s ", b[k]->Word);
  18. //This traverses the list
  19. b[k]=b[k]->link;
  20. }
  21.  
  22. printf("\n");
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement