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:

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты