Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 209 Bytes

File metadata and controls

5 lines (3 loc) · 209 Bytes

指针ptr初始化指向数组ia的首元素,索引ix初始化为0

每次循环,检查索引值是否等于数组大小及指针是否指向数组的尾元素

递增ix的值,指针移向下一个元素