题目
题目

ELEC1601 (ND) ELEC9601 (ND) Essentials Quiz 2 Practice

简答题

Study the following code. What is the value returned by the function called myArray? void setup() { int x = 3; int y = myArray(); } void loop() { delay(500); } int myArray() { int a[7] = {3, 4, 5, 6, 7, 8, 9}; return a[2]; }

查看解析

查看解析

标准答案
Please login to view
思路分析
To determine the value returned by myArray(), we need to follow what the function does. First, inside myArray(), there is a local array declaration: int a[7] = {3, 4, 5, 6, 7, 8, 9}; This creates seven integers in......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!