B
Bo Sun
hi:
please take a look at the following struct definition and operation:
struct node {
int item;
node* next;
node(int arg_item, node* arg_next)
{
item = arg_item;
next = arg_next;
}
};
typedef node *link;
link pp_t = new node(10, pp_t);
is pp_t now a circular linked list? will pp_t->next->item be accessed? if
not, why?
many thanks,
bo
please take a look at the following struct definition and operation:
struct node {
int item;
node* next;
node(int arg_item, node* arg_next)
{
item = arg_item;
next = arg_next;
}
};
typedef node *link;
link pp_t = new node(10, pp_t);
is pp_t now a circular linked list? will pp_t->next->item be accessed? if
not, why?
many thanks,
bo