Question: is this below correct regarding this question in C++, Write an algorithm to determine the average of a linked list of real numbers with first
is this below correct regarding this question in C++, Write an algorithm to determine the average of a linked list of real numbers with first node pointed to by first?
float num = 0; int number; ptr= first; while (ptr != null_value) { num += ptr -> data; number++; ptr = ptr-> link }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
