375 views
0 votes
0 votes

Assume that p and q are pointers. What will be the output after performing following sets of operations on a given linked list ?
struct node{
char data;
struct node *next;
};
image:Pds_sub33c.jpg
Operations are
I. q=p→next→next;
II. p→next→next=q→next→next;
III. q→next→next→next→next=q→next;
IV. printf("%c", p→next→next→next→next→data);

  1.    e
  2.   f
  3.    d
  4. Segmentation fault

Please log in or register to answer this question.

No related questions found