Q:

Functionality of the Following code is

0

Functionality of the Following code is

public void function(Node node)
{
 if(size == 0)
  head = node;
 else
 {
  Node temp,cur;
  for(cur = head; (temp = cur.getNext())!=null; cur = temp);
  cur.setNext(node);
 }
 size++;
}

  1. Deleting a node at the beginning of the list
  2. Deleting a node at the ending of the list
  3. Inserting a node at the end of the list
  4. Both A and C

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Inserting a node at the end of the list

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Convert the following expression into postfix expr... >>
<< Which is not the application of stack?...