正在加载图片...
上海交通大学交大密西根 联合学院·一 ◆ 81 UM-SJTU Joint Institute University of Michigan Shanghal Jiao Tong University Array Size Definition Using a #defined constant as the array size is often convenient in declarations.It is not possible in C to use a variable as the size of an array. #define MAX EXAMS 500 main() int i; int scores [MAX EXAMS]; What goes here must be a constant,because as it compiles your program,the compiler needs to know how much memory to set aside.Array Size Definition Array Size Definition • Using a #defined constant as the array size is often convenient in declarations. It is not possible in C to use a variable as the size of an array
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有