title: What is the time complexity of passing a Vector of size n to another function by passing by value and passing by reference?
body: <pre><code>void fun(vector&lt;int&gt;vec)
  {
     some code
  }
  int main()
  {
     int n = 5;
     vector&lt;int&gt;avec(n);
     fun(avec);
  }
  </code></pre>
  <p>What is the time complexity of passing a Vector of size <code>n</code> 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?</p>