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:

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C# quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes