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;
};
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);
- e
- f
- d
- Segmentation fault