正在加载图片...
上海交通大学交大密西根 ·联合学院一 181 UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Array Element Accessing Since an array element is something that can go on the left side of an assignment,we can use operators like++ with an array element. value[1]++; Arrays is just shorthand for Array elements are referenced in expressions of the form value[1]+1; array-name[index] main ( main char letters[4]; int values[3]; letters int i; a 25 0123 letters[0]=A'; values va1ues[1]=23; 24 i=values[1]+2; 0 1 values [1]++;Array Element Accessing Array Element Accessing • Since an array element is something that can go on the left side of an assignment, we can use operators like ++ with an array element. value[1]++; is just shorthand for value[1] += 1;
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有