can i know the source code for reversing a linked list with
out using a temporary variable?
Answer Posted / fazil
void Func( struct Node* List )
{
if( List && List->Next )
{
Func( List->Next );
List->Next->Next = List;
}
}
| Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
Explain the meaning of keyword 'extern' in a function declaration.
What is c basic?
What are the usage of pointer in c?
Are the outer parentheses in return statements really optional?
What are examples of structures?
What are data types in c language?
What is d'n in c?
Where we use clrscr in c?
How will you delete a node in DLL?
What are the functions to open and close the file in c language?
Write a code to remove duplicates in a string.
Is r written in c?
What is the benefit of using an enum rather than a #define constant?
Explain what is a program flowchart and explain how does it help in writing a program?
What is the use of sizeof () in c?