Find the middle node in the linked list??
(Note:Do not use for loop, count and count/2)
Answer Posted / santhoshr
It wont work exactly if the no of nodes is not given!!! So
better answer is having two pointers from first itslf.
And like this , another question is there,
to find the pth node from last!! That too haas the same logic!!!
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
What is string constants?
Explain what are header files and explain what are its uses in c programming?
what are the different storage classes in c?
What are extern variables in c?
How does struct work in c?
With the help of using classes, write a program to add two numbers.
What are header files and explain what are its uses in c programming?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Why is c still so popular?
Explain what is wrong with this program statement? Void = 10;
Explain what are global variables and explain how do you declare them?
What are the rules for identifiers in c?
What is the use of header files?
What does a function declared as pascal do differently?