+ 1

How is the length 3 and the rank 1

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace SoloLearn { class Program { static void Main(string[] args) { int[ ] arr = {2, 4, 7}; Console.WriteLine(arr.Length); Console.WriteLine(arr.Rank); } } }

12th Feb 2017, 1:53 AM
Christopher
1 ответ
0
length is 3 beause it has 3 items in array rank is 1 because it is single dimensional array
13th Feb 2017, 7:14 PM
Testmail Testmail
Testmail Testmail - avatar