title: Lambda VS Function
body: <p>I just finished learning about lambda expressions and was wondering whether an expression or a regular function would execute faster when printing to a console using <code>cout</code>.</p>
  
  <p>Should I use</p>
  
  <pre><code>// Lambda expression
  auto helloWorld = []()
  {
      cout &lt;&lt; "Hello World" &lt;&lt; endl;
  };
  </code></pre>
  
  <p>or</p>
  
  <pre><code>// Normal function
  void helloWorld()
  {
      cout &lt;&lt; "Hello World" &lt;&lt; endl;
  }
  </code></pre>
  
  <p>Note: I am still a novice programmer, so do feel free to point out any errors I may have made. I can only learn</p>
  
  <p>Thanks</p>