how to #define array in C code example

Example 1: How to make a array in c#

//use this for unity editor:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Array : MonoBehaviour
{
//You can make int, float, strings and more
//Note: You need to asign the objects from the unity editor
    public GameObject[] MyObjects;

    void Update()
    {
    //Here we are useing for loop to destroy our objects in the list
        for (int i = 0; i < MyObjects.Length; i++)
        {
            Destroy(MyObjects[i], 3f);//The 3f is how much seconds to wait 
            //before they will be destroyed
        }
    }
}
//Sry for my english its bad

Example 2: how to make a c# array

// Syntax: 
datatype_variable[dimension] = new datatype[size]{array};

// For example:
string MyArray[] = new string[1]{"Hello","World"};

// or just:
string MyArray[]={"Hello","world"};

// for multidimensions:
// 2D array:
         	  // 2 arrays, 3 values //
int MyArray=[,]=new int[1,2]{
  {1,2,3},
  {1,2,3}
}

// 3D array:
              // 2 arrays, 3 arrays, 4 values //
int MyArray=[,,]=new int[1,2,3]{
  {
    {1,2,3,4},
    {1,2,3,4},
    {1,2,3,4}
  },
  {
    {1,2,3,4},
    {1,2,3,4},
    {1,2,3,4}
  }
}