create an SINGLE LINKED LISTS and reverse the data in the
lists completely
Answer Posted / vignesh1988i
dear sir ,
your logic might be incorrect , AND GIVE THE FULL PROGRAM SIR
sir you have told that TEMP pointer which point to the last
node.... ok ,for first you can swap the data.... ie STARTING
to TEMP. but how will you arrive at next pair of node for
swapping by decrementing the TEMP , ... a single linked
lists can travel only in one direction from HEAD till NULL
......
THANK U
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a program to know whether the input number is an armstrong number.
Linked lists -- can you tell me how to check whether a linked list is circular?
How can I swap two values without using a temporary?
What does. int *x[](); means ?
How do you define structure?
How can I access an I o board directly?
Is fortran still used today?
Can the “if” function be used in comparing strings?
What is a constant?
What does s c mean in text?
Differentiate between the expression “++a” and “a++”?
What is this pointer in c plus plus?
Is it fine to write void main () or main () in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is unsigned int in c?