First I will ask users “How many names you want to enter?”.
Once they have entered,I wanted to create that number of arrays.
How to create n number of Arrays Dynamically in c#?
Console.WriteLine("How many names you want to Enter?");
int nameCount = Convert.ToInt32(console.Readline());
//I know following code is not possible.But How to make it possible?
for(int i=1;i<=nameCount;i++)
{
string[] name+i = new string[45];
//what I mean is string[] name1 = new string[45];
string[] name+i = new string[45];
string[] name+i = new string[45];
string[] name+i = new string[45];
.
.
.
}
Try
List<string[]>Or