Created
December 4, 2018 17:04
-
-
Save richlander/d2ed10abc144a53ba31989e75c77bc12 to your computer and use it in GitHub Desktop.
Index Example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index i1 = 3; // number 3 from beginning | |
Index i2 = ^4; // number 4 from end | |
int[] a = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 }; | |
Console.WriteLine($"{a[i1]}, {a[i2]}"); // "3, 6" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment