title: do i need a break after return in my function?
body: <p>this is a function in my code:</p>
  
  <pre><code>bool same_community(string s1, string s2)//check if student 1 &amp; student 2 are in the same community
  {
  for(int i=0;i&lt;number_of_communities;i++)    
      if(community[i].contains(s1) &amp;&amp; community[i].contains(s2))
      {
          return true;
          break;
      }
  return false
  }
  </code></pre>
  
  <p>is the break after return true needed?</p>