Which programming language is this?
int compare(const void *a, const void *b) {
return *(const int *)a - *(const int *)b;
}
qsort(nums, count, sizeof(int), compare);
Answer: C
A
Play Programming Languages ▸
const void * comparator passed to the standard library qsort is idiomatic C.