這是一個排序程序運行後B數組存放A數組各數在排序後的位置結果是
A={}
B={}
C={}
()同上面題()
()對c數組的賦值同所選擇的下標i和j的次序(指外層循環用j內層用i)沒有關系
()同上題()
()對ij下標取反序後重復執行第()步A數組所有元素均變為(在機器上驗證反復循環次後所有元素均變為)
[] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] [] []
From:http://tw.wingwit.com/Article/program/sjjg/201311/23053.html