Implement a function that returns the 5th element from the
end in a singly linked list of integers in one pass.
Answer Posted / vrushali
In whatever the case , we require to know the no of nodes in
the LL. As there is no way to know the total no of nodes
without traversing the LL.
Please coorect me if I am wrong.
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
How can I do peek and poke in c?
Is null valid for pointers to functions?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What happens if header file is included twice?
Can we access array using pointer in c language?
Explain how can you be sure that a program follows the ansi c standard?
Can include files be nested? How many levels deep can include files be nested?
What is "Duff's Device"?
find the sum of two matrices and WAP for it.
What is strcmp in c?
What is scanf_s in c?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
How many levels deep can include files be nested?
How will you delete a node in DLL?
struct screen_pos{ int row, col } ;move_right(cursor)struct screen_pos *cursor;{ cursor.col++; } /* This statementhas a syntax error */What is the correct statement a) cursor.col = cursor.col + 1; b) col.cursor++; c) *cursor.col++; d) pointer