+ 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); } } }
1 Answer
0
length is 3 beause it has 3 items in array
rank is 1 because it is single dimensional array