// you can divide the size of an array // by the size of each element (in bytes) int len = sizeof(arr) / sizeof(arr[0]);