This is well known code to compute array length in C:
sizeof(array)/sizeof(type)
But I can\'t seem to find out the length of the array pass
int arsize(int st1[]) { int i = 0; for (i; !(st1[i] & (1 << 30)); i++); return i; }
This works for me :)