DEV Community

Firdavs Mukhsimov
Firdavs Mukhsimov

Posted on

Array

a)Array nima?

Array bu bir xil turdagi ma'lumotlarni 
ketma-ket joylashgan holda saqlashga imkon beruvchi tuzilma.
Enter fullscreen mode Exit fullscreen mode

b)Quyidagi kodning natijasini ayting:

intll numbers = { 1, 2, 3, 4, 5 };
Console. WriteLine (numbers [2]);

Javob == 3;
Enter fullscreen mode Exit fullscreen mode

c) 2D array qanday ishlatiladi? Misol keltiring.

int[] a = {{1, 2},{3,4}};
Enter fullscreen mode Exit fullscreen mode

Top comments (0)