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
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is output redirection?
Why we use int main and void main?
What is huge pointer in c?
Explain function?
printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions
What is the difference between pure virtual function and virtual function?
Difference between Function to pointer and pointer to function
Read the following data in two different files File A: aaaaaaaadddddddd bbbbbbbbeeeeeeee ccccccccffffffff File B: 11111111 22222222 33333333 By using the above files print the following output or write it in the Other file as follows aaaaaaaa11111111dddddddd bbbbbbbb22222222eeeeeeee cccccccc33333333ffffffffffff
Can we use any name in place of argv and argc as command line arguments?
Explain how can a program be made to print the line number where an error occurs?
Why is c so popular?
What is array within structure?
What is variables in c?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?