DEV Community

asilbek ibragimov
asilbek ibragimov

Posted on

1 1 1 1 1

9. Array

9. Array

a)Array nima?

b)Quyidagi kodning natijasini ayting:


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

Enter fullscreen mode Exit fullscreen mode

c) 2D array qanday ishlatiladi? Misol keltiring.
Javoblari:

a) Array bu bir xil turdagi ma'lumotlarni
ketma-ket joylashgan holda saqlashga imkon beruvchi tuzilma.

b) Javob == 3;

c) 
class Program
{
    static void Main()
    {
        int[] = `{{1, 2, 3}`, `{4, 5, 6}}`;
    }
}
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs