Be concise.
Be useful.
All contributions dictatorially edited by webmasters to match personal tastes.
Please do not paste any copyright violating material.
Please try to avoid dependencies to third-party libraries and frameworks.
int n;
int x[5];
n = sizeof(x)/sizeof(*x);
size_t n = sizeof(x)/sizeof(*x);
(def n (count x))
size_t n = x.size();
int n = x.Length;
auto n = x.length;
int n = x.length;
n = Enum.count(x)
N = length(X).
n = size(x)
n := len(x)
def n = x.size()
let n = length x
var n = x.length;
int n = x.length;
int n = x.size();
val n = x.size
(setf n (length x))
local n = #x
$n = count($x);
n := length(x);
my $N = @x;
$n = scalar @x;
length(x, N).
n = len(x)
n = x.length
let n = x.len();
val n = x.size
(define n (length x))
n := x size.
Dim n As Integer = x.Count
n = UBound(x) + 1