int sz = sizeof(arr) / sizeof(arr[0]);sort(arr, sz);printfArr(arr, sz);改为:sort(arr, n);printfArr(arr, n);
sz不要,全改成n