title: Purpose of struct, typedef struct, in C++
body: <p>In C++ it is possible to create a struct:</p>
  
  <pre><code>struct MyStruct
  {
      ...
  }
  </code></pre>
  
  <p>And also possible to do the following:</p>
  
  <pre><code>typedef struct
  {
      ...
  } MyStruct;
  </code></pre>
  
  <p>And yet as far as I can tell, no discernable difference between the two. Which is preferable? Why do both ways exist if there is no difference? Is one better than the other in style or readability?</p>