Go through this linked list concept.While traversing through
the singly linked list sometimes the following code snippet
"while(head != NULL)" is used and other times
"while(head->link != NULL)"is used(Here head is the pointer
pointing to the first node,node has two parts data part and
link part).What is the difference between head != NULL and
Head->link != NULL and in which situation are they used?
Answer / hari
When you want to check the value of the first node or before
traversing the node, we have to check whether head node is
available in the Linked list, those times, the "head !=
NULL" will be checked.
While traversing, whether the next node is available or to
verify the current node is last node, those times, we used
to check head->link != NULL.
| Is This Answer Correct ? | 6 Yes | 0 No |
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
What is meant by int main ()?
What is an array in c?
What is null pointer constant?
What is volatile variable in c with example?
why division operator not work in case of float constant?
What is a header file?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
Three major criteria of scheduling.
why i join syntel?
23 Answers ABC, Syntel, TCS,
What is the use of parallelize in spark?
Tell me when is a void pointer used?