/****************************************************************************** Program to compute the largest element in array ******************************************************************************/ #include #define maxSize 100 int main() { int array[maxSize], size; int max; // Scanning the size of the array printf("Enter the size of the array: "); scanf("%d",&size); // Scanning the elements of array printf("Enter the %d elements of the array: \n",size); for(int i=0; i max) { max = array[i]; } } // Printing out the result printf("\nThe largest element of the array: %d",max); return 0; } /****************************************************************************** OUTPUT SAMPLE Enter the size of the array: 5 Enter the 5 elements of the array: Element [0]: 1 Element [1]: 2 Element [2]: 3 Element [3]: 4 Element [4]: 6 The input array: 1 2 3 4 6 The largest element of the array: 6 ******************************************************************************/