Should I use LL when assigning a value to long long c++
<p>Should I always use <code>LL</code> when  assigning a value to <code>long long</code> in C++?</p>

<p>Assuming I have</p>

<pre class="lang-cpp prettyprint-override"><code>long long myVar = 10LL;
</code></pre>

<p>Or If I have a member variable of <code>long long</code> type should I always use <code>LL</code>?</p>

<pre class="lang-cpp prettyprint-override"><code>A::A()
    : m_myVar(0LL)
{
}
</code></pre>

<p>What are possible dangers to not write <code>LL</code> or to write <code>L</code>?</p>

<p><strong>EDITED</strong>
From  answers, comments  and further googling the dangerous is such a case  </p>

<pre><code>m_myVar = 1000000000 * 100;
</code></pre>

<p>if <code>LL</code> will be forgotten for <code>1000000000</code> or <code>100</code>  the overflow will happen.</p>