19.下列程序段的运行结果是Static void Main(string[ ]args){string[ ]words=new string[ ]{“a”,”b”,”c”}Foreach(int word in words){word=”abc”;Console.WriteLine(word);}Console.ReadKey( );}
19.下列程序段的运行结果是Static void Main(string[ ]args){string[ ]words=new string[ ]{“a”,”b”,”c”}Foreach(int word in words){word=”abc”;Console.WriteLine(word);}Console.ReadKey( );}
A、abc
B、abc abc abc
C、bc ac ab
D、不能正确编译
【正确答案】:D
Top