Warning: implode(): Invalid arguments passed in /www/wwwroot/jobquiz.info/mdiscuss.php on line 336 Which of the following is the correct way to obtain the number of elements present in the array given below? int[] intMyArr = {25, 30, 45, 15, 60}; intMyArr.GetMax; intMyArr.Highest(0); intMyArr.GetUpperBound(0); intMyArr.Length; intMyArr.GetMaxEleme ?->(Show Answer!)
1. Which of the following is the correct way to obtain the number of elements present in the array given below? int[] intMyArr = {25, 30, 45, 15, 60}; intMyArr.GetMax; intMyArr.Highest(0); intMyArr.GetUpperBound(0); intMyArr.Length; intMyArr.GetMaxElements(0);
Ask Your Doubts Here
Comments
By: guest on 01 Jun 2017 06.03 pm
using System; public class Test { public static void Main() { int[] intMyArr = { 25, 30, 45, 15, 60, 78, 99 }; Console.WriteLine(intMyArr.Length); Console.WriteLine(intMyArr.GetUpperBound(0)+1); } } /* Output : 7 7 */