title: How to store a C++ variable in a register
body: <p>I would like some clarification regarding a point about the storage of register variables:
  Is there a way to ensure that if we have declared a register variable in our code, that it will ONLY be stored in a register?</p>
  
  <pre><code>#include&lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      register int i = 10;// how can we ensure this will store in register only.
      i++;
      cout &lt;&lt; i &lt;&lt; endl;
      return 0;
  }
  </code></pre>