I have a string array, I want to access the characters of the first element in that array:
string[] str= new string[num];
for(int i = 0; i < num; i++)
{
str[i] = Console.ReadLine();
}
To access the characters of the first element in the string array, in Java
str[0].CharAt[0] // 1st character
Is there a way in C# for this? The only function I could see was use of substring
. It will incur more overhead in such case.