Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

C# specify array size in method parameter

$
0
0
i want to ask how i do specify an array length in a method parameter in C#. for example a method to calculate average of ten double numbers like Averageof10numbers(double[10] numbers) but it gives error.array length is not more 10 and not less 10. is there any solution for this?

Viewing all articles
Browse latest Browse all 31927

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>