Q90
MCQ2 marks, −0.5Consider the function defined below. struct item { int data; struct item * next; }; int f(struct item *p) { return ((p == NULL) || (p->next == NULL)|| ((p->data <= p ->next -> data) && f(p->next))); } For a given linked list , the function returns if and only if
Sign in to save attempts.
Loading…