title: How to produce 64 bit masks?
body: <p>Based on the following simple program the bitwise left shift operator works only for 32 bits. Is it true?</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;stdlib.h&gt;
  
  using namespace std;
  
  
      int main(void)
      {
          long long currentTrafficTypeValueDec;
          int input;
          cout &lt;&lt; "Enter input:" &lt;&lt; endl;
          cin &gt;&gt; input;
          currentTrafficTypeValueDec = 1 &lt;&lt; (input - 1); 
          cout &lt;&lt; currentTrafficTypeValueDec &lt;&lt; endl;
          cout &lt;&lt; (1 &lt;&lt; (input - 1)) &lt;&lt; endl;
  
          return 0;
  
      }
  </code></pre>
  
  <p>The output of the program:</p>
  
  <pre><code>Enter input:
  30
  536870912
  536870912
  
  Enter input:
  62
  536870912
  536870912
  </code></pre>
  
  <p>How could I produce 64-bit masks?</p>