Click here to Skip to main content
15,887,288 members
Home / Discussions / C#
   

C#

 
AnswerRe: Not able to use Modern UI Charts for Windows 8 Pin
Raghavendra Reddy C20-May-13 22:53
professionalRaghavendra Reddy C20-May-13 22:53 
AnswerRe: Not able to use Modern UI Charts for Windows 8 Pin
Richard MacCutchan20-May-13 22:54
mveRichard MacCutchan20-May-13 22:54 
QuestionPROBLEM with SEND DATA to LOCAL PORT C# Pin
Andrew Nguyen20-May-13 17:18
Andrew Nguyen20-May-13 17:18 
AnswerRe: PROBLEM with SEND DATA to LOCAL PORT C# Pin
Ron Beyer20-May-13 17:56
professionalRon Beyer20-May-13 17:56 
QuestionUsage of IDataErrorInfo Pin
radkrish20-May-13 8:11
radkrish20-May-13 8:11 
AnswerRe: Usage of IDataErrorInfo Pin
Ron Beyer20-May-13 14:55
professionalRon Beyer20-May-13 14:55 
GeneralUnderstanding Jagged Arrays Pin
N8tiv20-May-13 3:29
N8tiv20-May-13 3:29 
GeneralRe: Understanding Jagged Arrays Pin
Richard Deeming20-May-13 3:44
mveRichard Deeming20-May-13 3:44 
WidmarkRob wrote:
myJaggedArray[0][0] = 11; // This is changing the first element in both arrays to 11, right?
myJaggedArray[1][2] = 22; //this is changing the first element in the first array to 22 and changing the second element in the second array to 22, right?

Not quite. A jagged array is essentially an array of arrays. In your sample code, the myJaggedArray variable is an array containing two elements: an array of three integers, and an array of five integers.

myJaggedArray[0] returns the first element, so myJaggedArray[0][0] = 11 is updating the first element of the array stored in the first element of myJaggedArray, and myJaggedArray[1][2] = 22 is updating the third element of the array stored in the second element of myJaggedArray.

http://msdn.microsoft.com/en-us/library/2s05feca.aspx[^]



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 4:00
N8tiv20-May-13 4:00 
GeneralRe: Understanding Jagged Arrays Pin
Richard Deeming20-May-13 4:19
mveRichard Deeming20-May-13 4:19 
GeneralRe: Understanding Jagged Arrays Pin
Richard MacCutchan20-May-13 5:12
mveRichard MacCutchan20-May-13 5:12 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 6:04
N8tiv20-May-13 6:04 
GeneralRe: Understanding Jagged Arrays Pin
Richard MacCutchan20-May-13 7:19
mveRichard MacCutchan20-May-13 7:19 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 7:30
N8tiv20-May-13 7:30 
GeneralRe: Understanding Jagged Arrays Pin
Matt T Heffron20-May-13 8:49
professionalMatt T Heffron20-May-13 8:49 
GeneralRe: Understanding Jagged Arrays Pin
Richard MacCutchan20-May-13 22:26
mveRichard MacCutchan20-May-13 22:26 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv23-May-13 15:24
N8tiv23-May-13 15:24 
GeneralRe: Understanding Jagged Arrays Pin
Richard MacCutchan23-May-13 20:42
mveRichard MacCutchan23-May-13 20:42 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv23-May-13 21:15
N8tiv23-May-13 21:15 
GeneralRe: Understanding Jagged Arrays Pin
Richard MacCutchan23-May-13 22:22
mveRichard MacCutchan23-May-13 22:22 
GeneralRe: Understanding Jagged Arrays Pin
Jasmine250120-May-13 10:44
Jasmine250120-May-13 10:44 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 10:47
N8tiv20-May-13 10:47 
GeneralRe: Understanding Jagged Arrays Pin
Jasmine250120-May-13 10:52
Jasmine250120-May-13 10:52 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 10:57
N8tiv20-May-13 10:57 
GeneralRe: Understanding Jagged Arrays Pin
N8tiv20-May-13 11:06
N8tiv20-May-13 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.