Assume that p and q are pointers. What will be the output after performing the 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);

1
e
2
d
3
Segmentation fault Error
4
No error and print the data.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation