下面分别为java语言与C语言的堆排序代码实现。 1 Java代码实现 @Test public static void HeapSort_test() { int arr[] = { -1, 49, 38, 65