Microsoft Windows

20 نقاط السمعة
6.55 ألف مشاهدات المحتوى
عضو منذ
0

هل يمكن معرفة عدد العناصر المصفوفة في وقت التشغيلRuntime؟

Arrays are a compound type (§ 2.3, p. 50). An array declarator has the form a[d], where a is the name being defined and d is the dimension of the array. The dimension specifies the number of elements and must be greater than zero. The number of elements in an array is part of the array’s type. As a result, the dimension must be known at compile time, which means that the dimension must be a constant expression (§ 2.4.4,