title: #pragma pack effect
body: <p>I was wondering if someone could explain to me what the <code>#pragma pack</code> preprocessor statement does, and more importantly, why one would want to use it.</p>
  
  <p>I checked out the <a href="https://docs.microsoft.com/en-us/cpp/preprocessor/pack" rel="noreferrer">MSDN page</a>, which offered some insight, but I was hoping to hear more from people with experience. I've seen it in code before, though I can't seem to find where anymore.</p>