Home > Net >  I met a problem,, every brother please help solve
I met a problem,, every brother please help solve

Time:09-16

I am a pupil, grade five just learning c #, met, don't, every brother please help answer..
What is the difference between strings and character

CodePudding user response:

You this question,,,
Dare not answer ~ ~ afraid perpetuated this misunderstanding,,
To baidu, find more dare not answer,,,

Char vs string difference,,,
Char in c # said a
The string is composed of one or more Unicode characters,,,

Good,,,

CodePudding user response:

Strings and character is a data type in c #, difference, but they are not the same type of data, can through certain methods into a string array, character can turn into a string through certain methods,
Function definitions are required parameter data types, cannot pass to string type character, character string cannot pass,
The corresponding instance method is different also, such as string length attribute, characters,
Recommend you to understand what is object oriented, what type, what is the instance of these, because c # is an object-oriented language

CodePudding user response:

The most simple understanding is "ABC" is a string, 'a' is a character

CodePudding user response:

The string is composed of a string of characters,

CodePudding user response:

Thank you
  •  Tags:  
  • C #
  • Related