answersLogoWhite

0

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.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Why do you need a terminating null character at the end of the every string in C programming?

Because the null character represents the end of the string.


What is null character and what is its use in context of string?

null character exists at the end of the string.It denotes the end of it.


What symbol or character determines end of string?

In C programming language, a string is an array of characters which is always terminated by a NULL character: '\0'


What does chomp do in perl?

Most commonly it's used to remove the newline character from the end of a string or an array of strings. If the newline character isn't there, then nothing is done to the string. There are other details involved in what chomp does, but mostly that is what it is used for. For instance you can change which character is considered the be the newline character. If you want to know more, I would suggest reading the documentation.


How many constructors are there for the string class?

The String class has multiple Constructors. Some of them are: 1. String - new String(String val) 2. Character Array - new String(char[] array) 3. Character Array with index positions - new String(char[] array. int start, int end)


Difference between character and string?

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


Why and operator can not be used in string of c program?

Any character can be used in string, except for \\0. char example [] = "A&B|C";


How do you convert a character into a string?

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


How are string variables stored?

Typically as null-terminated character arrays. However, some languages use the first element of the array to store the length of the string rather than a null-terminator to mark the end of the string.


Which operator is used in character string comparisons with pattern matching?

select *from emp


What is the different between char and string?

char is used in Java to enetr only one character but string is used to specify a whole sentence or a bunch of characters.


How do you convert a string into a character array?

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