Array length: Difference between revisions
Content added Content deleted
(Adds slope example) |
No edit summary |
||
Line 676: | Line 676: | ||
<pre>Number of elements in array = 2 |
<pre>Number of elements in array = 2 |
||
Number of bytes in all elements combined = 11</pre> |
Number of bytes in all elements combined = 11</pre> |
||
=={{header|Beef}}== |
|||
<syntaxhighlight lang="csharp">using System; |
|||
namespace ArrayLength |
|||
{ |
|||
class Program |
|||
{ |
|||
public static void Main() |
|||
{ |
|||
var array = new String[]("apple", "orange"); |
|||
Console.WriteLine(array.Length); |
|||
} |
|||
} |
|||
} |
|||
</syntaxhighlight> |
|||
=={{header|Brat}}== |
=={{header|Brat}}== |