Skip to content

Commit 1e3a9a6

Browse files
authored
main
1 parent fc728f2 commit 1e3a9a6

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

107-main.c

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#include <stdio.h>
2+
#include <stdlib.h>
3+
#include "sort.h"
4+
5+
/**
6+
* main - Entry point
7+
*
8+
* Return: Always 0
9+
*/
10+
int main(void)
11+
{
12+
int array[] = {19, 48, 99, 71, 13, 52, 96, 73, 86, 7};
13+
size_t n = sizeof(array) / sizeof(array[0]);
14+
15+
print_array(array, n);
16+
printf("\n");
17+
quick_sort_hoare(array, n);
18+
printf("\n");
19+
print_array(array, n);
20+
return (0);
21+
}

0 commit comments

Comments
 (0)