What does least significant byte mean?
<p>I have to implement a method that writes a byte to an <code>ostream</code> object. Let's just called this <code>ostream</code> object <code>strobj</code>. I also have a bit buffer used to store a byte of data, let's call it:</p>

<pre><code>char &amp;bitter;
</code></pre>

<p>In my header file, I have this:</p>

<pre><code>void writeThisByte(int sumInt);
</code></pre>

<p>The instructions says that I have to write the "less significant byte" of the int being passed in to an <code>ostream</code> object, i.e. <code>strobj</code>;</p>

<p>However, I am confused on exactly what the least significant byte means.</p>

<p>Does this mean you are checking to see whether <code>sumInt == 1</code>? And if it is, do you write it to the <code>ostream</code> like this?</p>

<pre><code>strobj.write(&amp;bitter, 1);
</code></pre>

<p>I'm not sure :(</p>
