How to reverse a linked list without using array & -1?
Thank you.

Answers were Sorted based on User's Feedback

How to reverse a linked list without using array & -1? Thank you...

Answer /

IS it possible by sorted list???.

Is This Answer Correct ?    1 Yes 1 No

How to reverse a linked list without using array & -1? Thank you...

Answer / mahesh

NO ,

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C C++ Errors Interview Questions

what are the techniques for reducing the fragility of a memory bug?

1 Answers  

wap for bubble sort

3 Answers  

how to convert decimal to hexadecimal without using arrays just loops

2 Answers  

Given an int variable n that has been initialized to a positive value and, in addition, int variables k and total that have already been declared, use a do...while loop to compute the sum of the cubes of the first n whole numbers, and store this value in total . Thus if n equals 4, your code should put 1*1*1 + 2*2*2 + 3*3*3 + 4*4*4 into total . Use no variables other than n , k , and total .

3 Answers  

Write a program to accept two strings of Odd lengths. Then take all odd characters from one string and even characters from the other and concatenate and produce a string.

1 Answers  

Write a C program to enter 10 integer numbers through one variable and count how many of them are even using while loop ?

2 Answers  

Given that two int variables, total and amount, have been declared, write a loop that reads integers into amount and adds all the non-negative values into total. The loop terminates when a value less than 0 is read into amount. Don't forget to initialize total to 0. Instructor's notes: This problem requires either a while or a do-while loop.

3 Answers  

Given that two int variables, total and amount , have been declared, write a sequence of statements that: initializes total to 0 reads three values into amount , one at a time. After each value is read in to amount , it is added to the value in total (that is, total is incremented by the value in amount ). Instructor's notes: If you use a loop, it must be a for loop. And if you use a loop control variable for counting, you must declare it.

1 Answers   Google,

#include<>stdio.h> #include<>conio.h> { printf("hello"); void main() getch(); } what the out put of this program and why ......plz clear my answer

10 Answers   Wipro,

Assume that the int variables i and j have been declared, and that n has been declared and initialized. Write code that causes a "triangle" of asterisks of size n to be output to the screen. Specifically, n lines should be printed out, the first consisting of a single asterisk, the second consisting of two asterisks, the third consistings of three, etc. The last line should consist of n asterisks. Thus, for example, if n has value 3, the output of your code should be * ** *** You should not output any space characters. Hint: Use a for loop nested inside another for loop.

2 Answers   HCL,

#include<stdio.h> void main() { int i=1; printf("%d%d%d",i++,++i,i); }

19 Answers  

write the value of x and y after execution of the statements: int x=19,y; y=x++ + ++x; x++; y++;

0 Answers