

MCQOPTIONS
Saved Bookmarks
1. |
Complete the following set of code with foreach condition : int[][]a = new int[2][]; a[0] = new int[3]{3, 4, 2}; a[1] = new int[2]{8, 5}; foreach( int[]i in a) { /* add for loop */ console.write( j+ " "); console.writeline(); } |
A. | Foreach (int j = 1;(j( |
B. | Foreach (int j = 1;(j( |
C. | Foreach (int j in a.Length); |
D. | Foreach (int j in i); |
Answer» E. | |