Hi,

I have the following code snippet.


Module Module1

    Dim a, b, c, d As Byte

    Sub Main()

        a = b = c = d = 0
        Console.WriteLine("{0} {1} {2} {3}", a, b, c, d)

    End Sub

End Module

I expected 0 0 0 0 to be printed to the console.
However, I got 255 0 0 0. Why is that?
I have tested the example with Mono VB compiler and
 Microsoft VB 2008 Express Edition.

Jan Bodnar

Reply via email to