Actualy i have a prob in the begaining to add the node in the linklist
i write the following code
i make a display fucnction which display all the value of linklist
i check the value in display function by using printf
by using following statement
i get the expected ans from this statement
after that
i use
this loop is not working the control is not gone under this statement
if currnet->next->no is shown a value that means
current->next use a pointer which points to the value
thatmeans its not null.
why
i shown
help me guys
i write the following code
i make a display fucnction which display all the value of linklist
i check the value in display function by using printf
by using following statement
Code:
printf("test=%d",current->next->no)
after that
i use
Code:
while(current->next!=null)
if currnet->next->no is shown a value that means
current->next use a pointer which points to the value
thatmeans its not null.
why
Code:
current->next =null
help me guys
Comment