gpt4 book ai didi

vb.net - vb.net 在二维数组分配中是行优先还是列优先?

转载 作者:行者123 更新时间:2023-11-30 23:55:39 26 4
gpt4 key购买 nike

vb.net 在二维数组分配中是行优先还是列优先?

最佳答案

.NET 以 Row Major 顺序存储二维数组。

Ref . (大约下降一半!)

CLI spec (第 8.9.1 节)指出:

Array elements shall be laid out within the array object in row-major order (i.e., the elements associated with the rightmost array dimension shall be laid out contiguously from lowest to highest index). The actual storage allocated for each array element can include platform-specific padding.

关于vb.net - vb.net 在二维数组分配中是行优先还是列优先?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4185526/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com