Will the following code compile (as part of a method):
 
int[][] nums = new int[][] 
{ 
      new int[] { 0, 1, 2, 3 },
      new int[] { 4, 5 } 
}; 
foreach (int[] outer in nums) 
{ 
     foreach (int inner in outer) 
     { 
         Console.Write(inner +  ", "); 
      } 
}
 
Explanation
Get an explanation when it's available:
C#
C# Quiz
Learn C# Online

or Read more about C# Quiz

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback