|
Couple of years ago, when I had my old blog, I used to post tricky programming questions on and off. When I came across this a few days ago, thought this should give a life back to my dead blog :)
So kicking off with a brand new title and a very simple one for VB gurus!!!
Try
Dim a As Integer
Dim b As Integer
Dim c As Integer
a = 1
b = 0
c = a / b
Catch ex As DivideByZeroException
Console.WriteLine("Divide by zero error!")
End Try
What’s the output of the above code snippet? As I always say, real gurus can answer without actually running the code and of course they always explain why…. ;)
|