program to find the largest of n numbers and its location in an array
#include<stdio.h> int main() { int n, i, max, position; // Ask user for the number of elements printf(“Enter the number of elements: “); scanf(“%d”, &n); int arr[n]; // Input array elements printf(“Enter %d numbers:\n”, n); for (i = 0; i < n; i++) { scanf(“%d”, &arr[i]); } // Initialize max and position max = arr[0]; […]


