answersLogoWhite

0

Differentiate string and character

User Avatar

Anonymous

15y ago
Updated: 8/17/2019

A character is an integer value which stores an encoding for a printable (though not necessarily "visible") symbol. A string is a list of characters.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Difference between character and string?

A string ends with a '\0' character,but character is not.


Which character in string is used to end the string?

Character zero (the byte with the decimal value zero) is sometimes used to end a string. But in other cases, the size of the string is stored at the beginning of the string, and there is no end-of-string character. This allows any character to be included in the string.


How do you convert a character into a string?

A string is, by definition, a character array. No conversion is required.


Why percentage i is not used for integer data-type in c language?

C is statically typed. There is no need for dollar or percentage symbols to differentiate between character/string data and numeric data.


How do you convert a string into a character array?

A string is, by definition, a character array. No conversion is required.


Is string an object?

No. A string is, by definition, a character array.


Is string is an object?

No. A string is, by definition, a character array.


What is the difference between A and A in string?

Well, A is an identifier; 'A' is a character-literal; "A" is a string literal (of 1 character); "'A'" is another string literal (of 3 characters).


A character array terminated with the null character is most correctly called what?

zero-terminated string


(variable) = a(not a string!)?

Character


Is special symbols are valid as a string in java?

Yes. Any special character inside the String is considered as part of the string variable and would not be treated as a special character. Ex: String str = "ABC_$4"; is a valid string declaration


What are some of the meanings of the character string D10?

There is no such thing as a character string D10. This is an invalid question and doesn't leave much to answer for this question. Technically speaking a character string D10 would return just the phrase D10.