Prêt
Instructions Moyen

Maximum

Tableaux · Exercice 3

Écris une fonction int trouverMax(int tab[], int taille) qui renvoie le plus grand élément d'un tableau.

Test :

int notes[] = {12, 18, 9, 15, 14};
printf("Max : %d\n", trouverMax(notes, 5));  // 18
ÉDITEUR
SORTIE
Appuie sur Ctrl+Entrée pour compiler et exécuter.