正在加载图片...
Dynamic arrays A dynamic array is an array whose index bounds are not known until run-time.Dynamic arrays are found in Algol and Ada.In such languages,different dynamic arrays of the same type may have different index bounds,and therefore different numbers of elements. How then can we make dynamic arrays satisfy the constant-size requirement? We are forced to adopt an indirect representation,in which the dynamic array's handle (also called an array descriptor or array information vector)contains not only a pointer to the array's elements but also the array's index bounds.The handle has a constant size.Dynamic arrays A dynamic array is an array whose index bounds are not known until run-time. Dynamic arrays are found in Algol and Ada. In such languages, different dynamic arrays of the same type may have different index bounds, and therefore different numbers of elements. How then can we make dynamic arrays satisfy the constant-size requirement? We are forced to adopt an indirect representation, in which the dynamic array’s handle (also called an array descriptor or array information vector) contains not only a pointer to the array’s elements but also the array’s index bounds. The handle has a constant size
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有