在C#中,可以像下面的示例一样在不使用关键字“ new”的情况下初始化数组:
int[] x = { 10, 20, 30 };
这是否意味着数组将在堆栈上初始化,因为关键字“ new”对于在堆上进行初始化是必需的?
c# arrays heap stack
arrays ×1
c# ×1
heap ×1
stack ×1