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
How can I open files mentioned on the command line, and parse option flags?
Is fortran still used in 2018?
main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none
Define Spanning-Tree Protocol (STP)
How can I change the size of the dynamically allocated array?
What is the general form of #line preprocessor?
In c programming language, how many parameters can be passed to a function ?
What is getch() function?
What is variable in c example?
Why do we need arrays in c?
What is the difference between local variable and global variable in c?
What is the value of uninitialized variable in c?
program to convert a integer to string in c language'
Can we assign integer value to char in c?
What is context in c?