Computer Science, asked by himanshub9742, 10 months ago

If the address of first node of linked list consisting of an integer and a pointer to next node is 1000 what will be the address ofthe second node of same linked list

Answers

Answered by gauravarduino
59

Explanation:

Input : Head of bellow linked list Output : Pointer to node 2 ... If list is empty or has only one node ... In the case of the first node of the loop, the second time we traverse it this condition will be ...

Answered by SaurabhJacob
6

1002 will be the next address for the C Plus Plus language.

  • Since the size of the integer data type differs from language to language. That's why the address of the second node will also differ.
  • As the address of the next node for a linked list of integer pointers will point on the address for the size of the bit.

Hence the address of the second node of this list is 1002.

Similar questions