What are Arrays?
Sometimes we want to store a bunch of related data, however using separate variables doesn't really scale.
Looping over Arrays
Looping over an array means visiting each element one at a time. C# gives you two main ways to do it.
Strings as Arrays
A string behaves as a read-only array of characters.
Passing Arrays to Functions
Arrays can be passed to a function just like any other variable:
Array Methods
There are many operations you can perform on an array.
Stack vs Heap
While a program runs, it stores data in two areas of memory: the stack and the heap. Knowing which data goes where explains how value types and reference types behave differently.
Practice (Easy)
1. Some Cool Ints
Practice (Medium)
1. Predict the Output
Practice (Hard)
1. Predict the Output (return edition)
Practice (Strings)
1. Print Each Character