title: Branch mispredictions
body: <p>This question may be silly but i will ask it anyway.<br>
  I've heard about branch prediction from <a href="https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array?lq=1">this</a> Mysticial's answer<br>
  and i want to know if it is possible for the following to happen</p>
  
  <p>Lets say i have this piece of C++ code </p>
  
  <pre><code>while(memoryAddress = getNextAddress()){
  
    if(haveAccess(memoryAddress))
      // change the value of *memoryAdrress
    else 
      // do something else
  
  }
  </code></pre>
  
  <p>So if the branch predictor predicts wrongly in some case that the if statement is true and then the program  change the value of *memoryAddress can bad happen out of that?
  Can things like segmentation fault happen?</p>