C and C++

Moderators: None (Apply to moderate this forum)
Number of threads: 28695
Number of posts: 94715

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
how to reverse a linklist Posted by varinder on 13 Sept 2008 at 5:48 AM
plz give me solution of reversing a linklist using structures
Report
Re: how to reverse a linklist Posted by BitByBit_Thor on 13 Sept 2008 at 10:13 AM
: plz give me solution of reversing a linklist using structures
:

Setting tail to head and interchanging the roles of back and next.
For more specific explanation, post the structure of your linked lists
Best Regards,
Richard

The way I see it... Well, it's all pretty blurry
Report
Re: how to reverse a linklist Posted by vibin_mdcp on 24 Dec 2008 at 12:38 AM
: plz give me solution of reversing a linklist using structures
:

I assume your linklist is not a bi-directional linklist;

Better to create a new linklist object;

Then add nodes of your linklist into new linklist object from last to

start.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.