1,936 views
2 votes
2 votes

1 Answer

Best answer
4 votes
4 votes

The only option false in the above question is (C)

Reasons To back my Answer:

1. It is always required to chek the underflow and overflow conditions. It will throw an error : Invalid memory access error.

2. It is obvious from the the diagram below.

​​​​​​​

3. If we move the head then the previous data will be lost , so it is always advisable to use another pointer "p" to navgate in a link list.

selected by

Related questions

0 votes
0 votes
1 answer
1
Vaishnavi01 asked Sep 17, 2018
635 views
struct node* foo(struct node* a, struct node* b){ struct node* result, *rec; if(a==null) return b; else if(b==null) return a; else { rec=foo(a->next,b->next...