title: How to check if all of an array's elements are the same
body: <p>How can you know that all of the elements in an array are the same?
  For example,
  a[] = {0, 0, 0, 0, 0, 0, 0}</p>
  
  <p>How can you know that all elements in a[] are the same?
  I'm a noob, please answer in easy terms. Thanks! :)</p>