Question: struct item { int data; struct item * next; }; int f( struct item *p) { return ((p==NULL)((p> next ==NULL)(p> data next > data )&&(p>

struct item { int data; struct item * next; \}; int f( struct item *p) \{ return ((p==NULL)((p> next ==NULL)(p> data next > data )&&(p> next ))) \} For a given linked list p, the function f returns 1 if and only if Select one: a. the list is empty or has exactly one element b. the element in the list are sorted in nondecreasing order of data value c. the element in the list are sorted in nonincreasing order of data value d. not all element in the list have the same data value
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
