title: How to store a phone number in c++
body: <p>I used the below code to store an phone number(10 digit number) in c++:</p>
  
  <pre><code>#include&lt;iostream.h&gt;
  void main(){
     long long num;
     cin&gt;&gt;num;
     cout&lt;&lt;num;
  } 
  
  Input:998578985
  output:1395855233
  </code></pre>
  
  <p>Why is this happening? Is there any other way to store a 10 digit number. I am using turboc++ in win7.
  <img src="https://i.stack.imgur.com/c5GNG.png" alt="enter image description here"></p>