34,333
edits
Changes
→Declaring a Multidimensional Array
<pre>
string[,] books = {
{"Macbeth", "Shakespear", "ID12341"},
{"Before I Get Old", "Dave Marsh", "ID234234"},
{"Security+", "Mike Pastore", "ID3422134"}
};
</pre>
This creates a multidimensional array containing three rows and three columns. A row exists for each book, and each book contains three columns consisting of title, author and ID.
== Accessing Array Values ==