Number theory quiz doubt

Which code will take more time :
Code A:

void check1(vector<int> v)
{   for(int i=0;i<v.size();i++)
    cout<<v[i];
}

Code B:

void check2(vector<int> & v)
{   for(int i=0;i<v.size();i++)
    cout<<v[i];
}

Both code has time complexity

A has more time complexity than B

B has more time complexity than A

Can’t predict

hello @rohit_1906
A has more time complexity than B .
because in A vector is passed by value which will take O(n) extra time to copy sent vector to new vector.

in B vector is passed as reference so no extra will required.