can i know the source code for reversing a linked list with
out using a temporary variable?
Answer Posted / zhangwy
void Func( struct Node* List )
{
if( List && List->Next )
{
Func( List->Next );
List->Next->Next = List;
List->next = NULL ;
}
}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you determine the size of an allocated portion of memory?
What is printf () in c?
Define Array of pointers.
Difference between Shallow copy and Deep copy?
Explain what could possibly be the problem if a valid function name such as tolower() is being reported by the c compiler as undefined?
What is the use of static variable in c?
please give me some tips for the placement in the TCS.
What is the stack in c?
What are nested functions in c?
Explain modulus operator. What are the restrictions of a modulus operator?
What is modifier & how many types of modifiers available in c?
Is the exit() function same as the return statement? Explain.
How do you declare a variable that will hold string values?
What is difference between scanf and gets?
What is structure data type in c?