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:
Vector size is not passed in function call
hello @manish99
use v.size() to get the size of vector inside function.
and then use loop to find max