Sorting algorithms/Insertion sort: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: add static)
(→‎{{header|C}}: need stddef for size_t)
Line 190: Line 190:


=={{header|C}}==
=={{header|C}}==
<lang c>#include <stddef.h>
<lang c>static void insertion_sort(int *a, const size_t n) {
static void insertion_sort(int *a, const size_t n) {
size_t i, j;
size_t i, j;
int value;
int value;