how to print length of an array code example
Example 1: get length of array in c
int a[17];
size_t n = sizeof(a)/sizeof(a[0]);
Example 2: get length of array
// In Javascript
var x = [1,2,3];
console.log(x.length);
int a[17];
size_t n = sizeof(a)/sizeof(a[0]);
// In Javascript
var x = [1,2,3];
console.log(x.length);