Vector size is not passed in function call

I have given a vector in a function call only without it’s size I need to find the maximum element in a vector without using stl how can I do that:

hello @manish99

use v.size() to get the size of vector inside function.

and then use loop to find max