Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //https://www.facebook.com/AminproPastebin
- //Rewinding the Current node to retrive data from linked list.
- //Using while loop
- //From previous paste[continued]
- struct Box{
- char colour[20];
- float price;
- struct Box *next;
- }
- void main(){
- Current = Head;
- while(Current){
- printf("%s Box is priced %f\n", Current->colour, Current->price);
- Current = Current -> next;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement