answersLogoWhite

0

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

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

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).


What is the difference between 'a' and a in C?

a -- identifier 'a' -- character-literal "a" -- string-literal


Whats the difference between character and string if only one character is there?

Nothing Most computer languages have a string-termination character that is "invisible" to people. So, while a character variable may contain 'A', and a string variable appears to be simply "A", the string variable will actually have two characters. This difference is often masked by compilers and languages, but it exists nonetheless, and it is sloppy programming practice to compare a string to a character (or vice versa) without doing a type cast.


What is the difference between string type and character type constants?

A character type constant is a character, a char, while a string type is an array of characters. The character type constant is one character and is delimited by single quotes. The string type constant is zero or more characters and is delimited by double quotes.


What is the difference between Strings and Arrays in c?

There is no difference. A string is just an array of type char. The only real difference is that we do not need to keep track of the length of a string because strings are null-terminated in C. If a string does not have a null-terminator, then it is just an ordinary array of character values.


What is the difference among string and string buffer and string builder?

String is the immutable class that means the object f that class never be changed. String is the Sequence of character.


What is the difference between rope and string?

The difference between thread rope and string is that thread is more thicker than string and that string is more thinner than rope and thread is more thinner than rope there's your answer geese


Whats The difference between a 6 and 7 string guitar?

There is practically no difference. The 7-string guitar has one lower string that the 6-string does not. It is usually tuned to B(natural).


Is there a difference between leather and string when weaving?

yes


What is the difference between string and class?

A string is a specific class that is used for dealing with text data


Difference between thong and g-string?

g string only has a string in the back thong has triangle of fabric g string= T thong = Y


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.