A.int[]a; B.int a [3]; C.int a []={1,2,3}; D.int a []=new int[3];
指出下列程序段中的錯誤以及出錯原因。
最后一句產(chǎn)生編譯錯。 變量 i 的作用域在 for 語句中, 在 for 語句之外則不能使用。