Could you please help me with the source code for the following Task:


[IMG]http://www.2and2.net/files/492254f5267f5.png[/IMG]

THINK THIS IS THE ANSWER
Using Stack

Traverse_reverse_order( )
{
node *ptr, *stack;
create_empty_stack (stack);
ptr=head;
while (ptr! =(node*) NULL)
{
push (stack, ptr);
ptr=ptr->next;
}
while (! empty (stack))
{
ptr=pop (stack);
print ptr->info;
}
}

Using Recursion

Traverse_reverse_order (node *ptr)
{
if (ptr! =(node*) NULL)
Traverse_reverse_order (ptr->next)
Print ptr->info;
}

Could you please help me with the source code for the following Task:


[IMG]http://www.2and2.net/files/492254f5267f5.png[/IMG]

That is nice way to hide the fact that someone else is doing your homework . Innovative idea.

That is nice way to hide the fact that someone else is doing your homework . Innovative idea.

I agree.
First I thought the OP was just too lazy to even type the requirements here, but I see that you're right.
I always wonder why people are smart enough to constantly cheat the system and are willing to put a lot of time and effort in that, but they won't sit down for 10 minutes to try to make their own damn homework...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.