正在加载图片...
上海交通大学交大密西根 联合学院·一 ◆ 181 UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Array Definition To declare an array,we specify that type and name,just like any variable,and also the size,which means how many elements the array will have.A square-bracket notation is used to specify the size of an array. Here is how Arrays arrays look in Arrays must be declared,and as with any variable,declaring a stack frame an array sets aside the memory for it. diagram. main main() letters char letters[4]; □ int values[3]; valuesArray Definition Array Definition • To declare an array, we specify that type and name, just like any variable, and also the size, which means how many elements the array will have. A square-bracket notation is used to specify the size of an array. • Here is how arrays look in a stack frame diagram
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有