Question: .c - This program genera tes a linked list of numbers. After it generates the linked list Name this program one of numbers, t calls

 .c - This program genera tes a linked list of numbers.

.c - This program genera tes a linked list of numbers. After it generates the linked list Name this program one of numbers, t calls aboveAverage which prints all numbers in the linked list that are "above average." That is, the value is greater than the ave rage of all the numbers in the linked list. Write aboveAverage # include # include typedef struct node f int value; struct node *next Node void aboveAverage (Node *); int main void) int num; Node * head = NULL; printf ("Enter a number to add to the list: ") scanf ("%d", &num) ; while ( num !=-999 ) { Node *ptr = (Node *) malloc ( sizeof (Node) ); ptr->value = num ; ptr->next = head; head = ptr; printf ("Enter another number or -999 to exit : "); scanf ("%d", &num) ; aboveAverage (head); return 0

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!