Is it safe to use the below code to get size of a dynamic array?
If not, what kind of problems can I get with it?
In my case, I have to pass the array named stringVals to 2 other functions to make the code refractored, so I will have to find the size of array dynamically 3 times.