Rabu, 19 Januari 2011

Why doesn’t this cause an Exception ?

I was trying to run the below code snippet in Visual Studio 2010 .int Number1 = 320000;int Number2 = 320000;int Number3 = Number1  * Number2 ;MessageBox.Show(Number3.ToString());The code resulted in the value – 797966336 without being showing the error or the correct value . Just found that If you want an exception to be raised on this occassion , then use the following 2 options as below .Read

Tidak ada komentar:

Posting Komentar