integer overflow!

Правка en1, от Burglar_anu, 2024-02-01 19:30:28

I understand that if value exceeds the range of int it gives overflow error like

int a=100000 and int b=100000, int c=a*b then cout<<c; will output overflow error

but instead of storing the value if i just print it then why does it gives overflow error

int a=100000 and int b=100000, cout<<a*b; [submission:244431214]

Please help!

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский Burglar_anu 2024-02-01 19:30:28 364 Initial revision (published)