Question #349690

write a program that finds a number of elements in an array without using built-in features


Expert's answer

        static int CountOfElementsInArray(int[] array)
        {
            int count = 0;
            foreach (int i in array)
            {
                count++;
            }
            //Console.WriteLine(count);
            return count;
        }

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS