can i know the source code for reversing a linked list with
out using a temporary variable?
Answer Posted / ruchi
void reverse()
{
nptr p;
int i=0;
p=start;
while(p->next!=NULL)
{
p=p->next;
i=i+1;
}
i++;
while(i)
{
printf("%d\n",p->num);
p=p->prev;
i--;
}
}
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How many levels of pointers can you have?
What is the scope of local variable in c?
Write a program to print fibonacci series using recursion?
hi any body pls give me company name interview conduct "c" language only
Write a program for finding factorial of a number.
When was c language developed?
What is keyword in c?
What is the best organizational structure?
What is the difference between int main and void main in c?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
How a string is stored in c?
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
Is c easy to learn?
What are the types of pointers in c?
Can we compile a program without main() function?