
Implement a function that fills out with the indices of arr ordered by string length, shortest first, without touching arr itself.
char *arr[] = {"gcc", "a", "make"}; argsort_len(arr, 3, out);1 0 2char *arr[] = {"zsh", "ash", "csh"}; argsort_len(arr, 3, out);1 2 0char *arr[] = {"vim", "ed", "emacs"}; argsort_len(arr, 3, out); print out, then arr1 0 2
vim ed emacssize_t out[2] = {99, 99}; argsort_len(arr, 0, out);99 99argsort_len.c<stddef.h>defines size_t
Run the tests to grade your code
Implement a function that fills out with the indices of arr ordered by string length, shortest first, without touching arr itself.
char *arr[] = {"gcc", "a", "make"}; argsort_len(arr, 3, out);1 0 2char *arr[] = {"zsh", "ash", "csh"}; argsort_len(arr, 3, out);1 2 0char *arr[] = {"vim", "ed", "emacs"}; argsort_len(arr, 3, out); print out, then arr1 0 2
vim ed emacssize_t out[2] = {99, 99}; argsort_len(arr, 0, out);99 99argsort_len.c<stddef.h>defines size_t
Run the tests to grade your code
Memory will appear here