A simple strategy .....
Cut the first node and make it's next pointer NULL.
For rest of the nodes cut each node and attach it to the previous node.
Code:
void reverse(int *st)
{
int *pt1 *pt2;
pt1 st; st st->next; pt1->next NULL;
while (st ! NULL)
{
pt2 st; st st->next; pt2->next pt1; pt1 pt2;
}
st pt1;
}