How to count the total bits of char in VB.NET

1 Answer

0 votes
Imports System
Imports System.Runtime.InteropServices.Marshal
                 
Public Module Module1
    Public Sub Main()
        Dim total_bits As Byte = SizeOf(GetType(Char)) * 8
         
        Console.WriteLine(total_bits)
    End Sub
End Module
 
 
 
' run:
'
' 8
'

 



answered Dec 14, 2023 by avibootz

Related questions

1 answer 192 views
1 answer 124 views
1 answer 145 views
1 answer 226 views
...