Learn C#: Arrays and Loops
Learn how to organize data and automate repetitive tasks with arrays and loops.
StartKey Concepts
Review core concepts you need to learn to master this subject
C# Arrays
Declaring Arrays
Declare and Initialize array
Array Element Access
C# Array Length
C# For Loops
C# For Each Loop
C# While Loop
C# Arrays
C# Arrays
// `numbers` array that stores integers
int[] numbers = { 3, 14, 59 };
// 'characters' array that stores strings
string[] characters = new string[] { "Huey", "Dewey", "Louie" };
In C#, an array is a structure representing a fixed length ordered collection of values or objects with the same type.
Arrays make it easier to organize and operate on large amounts of data. For example, rather than creating 100 integer variables, you can just create one array that stores all those integers!
What you'll create
Portfolio projects that showcase your new skills
How you'll master it
Stress-test your knowledge with quizzes that help commit syntax to memory