fin premeierer seance

This commit is contained in:
Yanis DARIUS 2024-09-03 12:18:08 +02:00
parent ca552281c9
commit 1043182b8b
3 changed files with 54 additions and 56 deletions

BIN
gmon.out Normal file

Binary file not shown.

BIN
student_rank Executable file

Binary file not shown.

View File

@ -55,7 +55,6 @@ int find_rank_student(int student_grade, int* grades_array, int students_number)
{ {
int position = -1; int position = -1;
int i = 0; int i = 0;
bubblesort(grades_array,students_number);
for (i = students_number - 1; i >= 0; i--) for (i = students_number - 1; i >= 0; i--)
{ {
if (grades_array[i] == student_grade) if (grades_array[i] == student_grade)
@ -122,4 +121,3 @@ int main(int argc, char** argv)
free(student_ranks); free(student_ranks);
return 0; return 0;
} }