Code:

#include <stdio.h>
#define SIZE 6
double main_array(void);
double array_notation(double ar[], int);
double pointer_notation(double ar[], int);
double largest_value(double ar[], int);
double display(double ar[], double ar[], double ar[], double);
int main(void)
{
double array1, array2, array3, largest, layout;
array1 = main_array();
array2 = array_notation(array1, SIZE);
array3 = pointer_notation(array1, SIZE);
largest = largest_value(array1, SIZE);
layout = display(array1, array2, array3, largest);
return 0;
}
double main_array(void)
{
double array1[SIZE] = {33.0,13.0,11.3,108.2,3.1,2.6};
int index;
for (index = 0; index < SIZE; index++)
printf("Number %d has %lf for a value.\n", index +1, array1[index]);
}
double array_notation(double array1[], int n)
{
double array2[SIZE];
int index;
array2[SIZE] = array1[SIZE];
for (index = 0; index < SIZE; index++)
printf("Number %d has %lf for a value.\n", index +1, array2[index]);
printf("2\n\n");
}
double pointer_notation(double array1[], int n)
{
int i;
double array3[SIZE];
int index;
array3[SIZE] = array1[SIZE];
for (index = 0; index < SIZE; index++)
printf("Number %d has %lf for a value.\n", index +1, *(array3 + index));
printf("3\n\n");
}
double largest_value(double array1[], int)
{
double greatest = 0.0;
double temp = 0.0;
int number = 0;
for (number = 0; number < SIZE; number++)
do
{
if (temp >= greatest && greatest == 0.0)
{
greatest = temp;
}
else
if (temp > greatest && greatest != 0.0)
{
greatest = temp;
}
} while (number != SIZE);
return greatest;
}
double display(double array1[], double array2[], double array3[],double largest)
{
int i;
printf ("%2s%10s%10s%10s\n", "i", "array1", "array2", "array3");
for (i = 0; i < SIZE; i++)
printf ("%2d%10d%10d%10d\n", i, array1[i], array2[i], array3[i]);
printf("The largest value stored in the array is %lf.\n", largest);
return 0;
}