I used the below code to store an phone number(10 digit number) in c++:
#include<iostream.h>
void main(){
long long num;
cin>>num;
cout<<num;
}
Input:998578985
output:1395855233
Why is this happening? Is there any other way to store a 10 digit number. I am using turboc++ in win7.