Changes

Jump to: navigation, search

Introducing C Sharp Arrays

374 bytes added, 18:41, 22 January 2008
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 ==

Navigation menu