I have some confusion in assignment that is as follows:
#include<iostream>
using namespace std;
int main()
{
int i=100000,j=100000;
long long int k;
k=i*j;
cout<<k<<endl;
}
k is giving absurd value. I think absurd value of k is due to the reason that i*j exceeds range of integer.
But as I am assigning i*j to a long long int. Please tell me why is it so?