finding length of an array in c++ code example Example: length of array in cpp int size = sizeof(arr)/sizeof(arr[0])