結果 : cpp function to find length of array