Answers for "c# array"

C#
1

c# how to crete array

//you can apply arrays to any variable

//string array
string[] names = {"Guy", "Ryan", "Jim"};

//int array
int[] ages = {14, 16, 17, 19};

//double array
double[] timeRecord = {2.3, 5.6, 3.3};
Posted by: Guest on September-29-2020
4

array in C#

// String array for my friends ( Example )
string[] myFriends = {"Friend1", "Friend2", "Friend3", "Friend4"};

// Display MyFriend2 at index of ( 1 )
Console.WriteLine(myFriends[1]);
Posted by: Guest on June-05-2021

C# Answers by Framework

Browse Popular Code Answers by Language