Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)
Answer Posted / vadivel
U mean without any looping statements r just for loop?????
It can be done in a single traversal using Hare n turtle
method as said above using a for or while loop.....
Without using looping statements d list can't be traversed..
Plz make the question clear.....
| Is This Answer Correct ? | 3 Yes | 10 No |
Post New Answer View All Answers
What is mean by data types in c?
Do you know the difference between exit() and _exit() function in c?
Which is an example of a structural homology?
What is wrong in this statement? scanf(ā%dā,whatnumber);
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
What functions are used in dynamic memory allocation in c?
find the sum of two matrices and WAP for it.
What is anagram in c?
What is the purpose of type declarations?
What is the significance of scope resolution operator?
Which is the memory area not included in C program? give the reason
How can I read/write structures from/to data files?
How can I open a file so that other programs can update it at the same time?
What are the types of data types and explain?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings