void fun(vector<int>vec)
{
some code
}
int main()
{
int n = 5;
vector<int>avec(n);
fun(avec);
}
What is the time complexity of passing a Vector of size n to another function by passing by value and passing by reference?
What is the time complexity of this code passing a vector only one time?