Chapter6–Arrays(阵列).ppt
Chapter 6 – Arrays ( 陣 列 ) Objectives 6.1 Introduction Arrays Structures of related data items Static entity – same size throughout program Dynamic data structures discussed in Chapter 12 6.2 Arrays Array (陣列) Group of consecutive memory locations Same name and type To refer to an element (元素) , need to specify Array name (陣列名稱) Position number (位置編號、位置號碼), or the subscript (足標、索引值) Format: arrayname[ position number ] First element at position 0 (編號從 0 開始) n element array named c: c[ 0 ], c[ 1 ]...c[ n – 1 ] 6.2 Arrays Array elements are like normal variables c[ 0 ] = 3; printf( %d, c[ 0
您可能关注的文档
最近下载
- 2025届中考化学复习第一轮第8章酸、碱、盐及其应用试卷含参考答案.docx VIP
- 文始初学实践.pdf VIP
- 2026届重庆市巴蜀中学高三下学期二模考试政治试卷(文字版,含答案).docx
- 2026上海新高考物理核心考点密押试卷(附答案解析).docx VIP
- 数字文化产业商业模式创新与消费者行为分析报告.docx
- 2026上海新高考化学核心考点密押试卷(附答案解析).docx VIP
- 98ZG003 多层及高层钢筋砼结构抗震构造图集.pdf VIP
- 2025年口腔执业医师实践技能考试评分标准细化表考官用表.doc VIP
- 梅州市梅江区2025-2026学年第二学期三年级语文期中考试卷(部编版含答案).docx VIP
- 2026上海新高考生物核心考点密押试卷(附答案解析).docx VIP
原创力文档

文档评论(0)