Advertisement
Aminpro

[ECP 1026]Link List Data Retrival

Nov 26th, 2012
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.37 KB | None | 0 0
  1. //https://www.facebook.com/AminproPastebin
  2. //Rewinding the Current node to retrive data from linked list.
  3. //Using while loop
  4. //From previous paste[continued]
  5.  
  6. struct Box{
  7. char colour[20];
  8. float price;
  9.  
  10. struct Box *next;
  11. }
  12.  
  13. void main(){
  14. Current = Head;
  15. while(Current){
  16. printf("%s Box is priced %f\n", Current->colour, Current->price);
  17. Current = Current -> next;
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement