Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

how to initialize array in c#

//Writing it from the console
int[]? numbers = Console.ReadLine().Split().Select(int.Parse).ToArray();
//or
string[] words = Console.ReadLine().Split().ToArray();
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #initialize #array
ADD COMMENT
Topic
Name
7+5 =