열렬히.뛰기

sort_int_tab

école 42 > exam02 > exam02 : part4 > sort_int_tab

공략법

  • 배열 정렬
  • 선택 정렬로 하는게 제일 간단!

문제

c
Assignment name  : sort_int_tab
Expected files   : sort_int_tab.c
Allowed functions:
--------------------------------------------------------------------------------

Write the following function:

void sort_int_tab(int *tab, unsigned int size);

It must sort (in-place) the 'tab' int array, that contains exactly 'size'
members, in ascending order.

Doubles must be preserved.

Input is always coherent.