c create an array int code example
Example 1: create n number of arrray in c
int n,i;
int **array = malloc(sizeof(int*)*n);
for(i=0;i<n;i++)
array[i] = malloc(sizeof(int)*64);
for(i=0;i<n;i++)
free(array[i]);
free(array);
Example 2: how to make a c# array
datatype_variable[dimension] = new datatype[size]{array};
string MyArray[] = new string[1]{"Hello","World"};
string MyArray[]={"Hello","world"};
int MyArray=[,]=new int[1,2]{
{1,2,3},
{1,2,3}
}
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}
}
}