5.2 指针变量的声明和初始化(Pointer Variable Declarations and Initialization) Pointer variables Normally, variable contains specific value (direct reference) Pointers contain memory address of variable that has specific value (indirect reference) Pointer declarations * indicates variable is pointer int *myPtr; declares pointer to int, pointer of type int * Multiple pointers require multiple asterisks int *myPtr1, *myPtr2; 5.3 指针运算符(Pointer Operators) (address operator) Returns the address of its operand Example int y = 5; int *yPtr; yPtr = y; // yPtr gets address of y yPtr “points to” y 5.3 指针运
您可能关注的文档
最近下载
- 2023CACA指南之眼睑皮脂腺癌.pdf
- 课程设计涤纶短纤维工厂设计.doc VIP
- spss统计分析期末考试题及答案.doc VIP
- 班组劳务分包合同协议书.docx VIP
- 2026年最新统计学基于spss期末考试题库及答案.doc VIP
- 材料成形设备第6章压铸机.ppt VIP
- spss统计分析期末考试题.docx VIP
- 2025年统计学spss期末考试题库及答案.doc VIP
- 《GB∕T 33000-2025大中型企业安全生产标准化管理体系要求》与《安全生产法》对应关系表(雷泽佳编写2025A0).pdf VIP
- 《数据分析与SPSS软件应用》期末试卷及答案2套.pdf VIP
原创力文档

文档评论(0)