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

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -