...
ISRO CS 2008
October 12, 2024
Switching
October 15, 2024
ISRO CS 2008
October 12, 2024
Switching
October 15, 2024

ISRO CS 2013

Question 4
The following steps in a linked list
p = getnode()
info (p) = 10
next (p) = list
list = p
result in which type of operation?
A
pop operation in stack
B
removal of a node
C
inserting a node
D
modifying an existing node
Question 4 Explanation: 
p = getnode() // Allocating memory for node and starting address of that node will store in the pointer “p”
info (p) = 10 // Storing the value of 10 into the info field of new node
next (p) = list // adding new node to the existing list.
list=p // the starting address of the list will
point to the new node
Correct Answer: C
Question 4 Explanation: 
p = getnode() // Allocating memory for node and starting address of that node will store in the pointer “p”
info (p) = 10 // Storing the value of 10 into the info field of new node
next (p) = list // adding new node to the existing list.
list=p // the starting address of the list will
point to the new node

Leave a Reply

Your email address will not be published. Required fields are marked *