9. Array

sunnat_qayumov

Sunnat Qayumov

Posted on October 14, 2024

9. 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:

int[] 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.

class Program
{
    static void Main()
    {
        int[] = `{{1, 2, 3}`, `{4, 5, 6}}`;
    }
}
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
sunnat_qayumov
Sunnat Qayumov

Posted on October 14, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related