Deep or Shallow

1
2
3
4
5
6
7
/*
struct Node{
    int data;
    Node *next;
};
*/
Node *current = head;

Which technique is used in the 7 th 7^\text{th} line of the above C++ code script to copy the structure head of type Node (which is the head of a linked list, say 1->2->3 or so) to the structure current ?

Shallow copy Neither of them Deep copy

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

0 solutions

No explanations have been posted yet. Check back later!

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...