I want to store every single character of a string value in every single place of a string array.
I wrote this code but Visual Studio says that “Cannot implicitly convert type String to String []”.
Can you please tell me how to fix this?
string [] array = Console.ReadLine();
Console.ReadLinedoes not return an array but astring:In your code, the variable
arrayis declared as a string array, so the result ofConsole.ReadLinecannot be assigned to it.