Answer to Question #349690 in C# for Sunayana

Question #349690

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


1
Expert's answer
2022-06-10T18:34:13-0400
        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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS