已知结构Resource 的定义如下: struct Resource{ public int Data = 0; } 则下列语句的运行结果为_________。 Resource[] list= new Resource[20]; for(int i = 0;i〈20;i++){ System.Console.WriteLine(“data={0}”,list.Data); }( 2 分)
A.
打印20 行,每行输出都是 data=0
B.
打印20 行,每行输出都是 data=null
C.
打印20 行.第1 行输出data=0,第2 行输出data=2,?,第20 行输出data=19
D.
出现运行时异常
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
皮皮学刷刷变学霸
举一反三
【简答题】____ 8. They had ______ such difficulty that they almost gave the project up.
【单选题】No sooner ____themselves in their seats in the theatre ____the curtain went up. A. they have settled, before B. had they settled, than C. have they settled, when D. they had settled, than
【简答题】Her skeleton was small and spare; perhaps that was why what would have been merely plumpness in another was obesity in her.(Para.6) 7. So the next night, after midnight, four men crossed Miss Emily's ...
【简答题】完形填空 。 One day two brothers went fishing. They had a dog with them. When they came near the river, they threw caps __ 1 __ a big stone and went to the river bank to __ 2 __. It __ 3 __ cold that day, ...