how expensive is it to get the size of an array in c++ code example
Example: c++ get length of array
int arr[5];
int len = sizeof(arr) / sizeof(arr[0]);
// returns 5
int arr[5];
int len = sizeof(arr) / sizeof(arr[0]);
// returns 5