C Programme pour passer un seul élément dans un tableau de fonction

#include <stdio.h>
void output(int values)
{
printf("The value of the 5th element of the array is: %d\n", values);
}
int main()
{
printf("Welcome to DataFlair tutorials!\n\n");
int array[6] = {10, 20, 30, 40, 50, 60};
output(array[5]); // Passing the 5th element of the array
return 0;
}
christinah muunga