Sub-arrays

C Program - Working with Sub-arrays

C program with the following specifications : • An array of a variable size (n) • A variable (y) of type integer • The algorithm should divide the array into n/y parts • Calculate the average for each part • Finally find the maximum value among the averages #include /* C Standard Input and Output Library*/ /*Variable declarations*/ int y; /* Declaration of a variable called y of type integer. */