How to determine the size of the array which is passed as a parameter to the function?

How to check the termination element?
for char strings it is '\0'

I dont want some global var, templates to have arraylen varible..
I just want to extract just as we do for char strings