arrays - C# What is the difference between byte[] and char[] -
arrays - C# What is the difference between byte[] and char[] -
what difference between byte[] , char[]?
differentiate more usage perspective. can used interchangeably?
byte
represents byte. 8-bits wide. char
represents unicode character, , 2 bytes (i.e. 16 bits) wide. utilize byte[]
if you're dealing raw bytes, , char[]
(or improve yet string
) if you're dealing strings.
c# arrays
Comments
Post a Comment