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

c# - Move local mssql database to webhosted MYSQL -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -

java - How to pass parameters between Request-Scoped Controllers? -