answersLogoWhite

0

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

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

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.


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 symbol is used to mark the beginning and end of a string?

quatation


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 is at the beginning and end of a string?

Depends on the programming language you are working with ..... Most use the symbol " or '


What would you use to terminate the string that is a character array?

If you use a declaration like:char arr[] = "blablabla";It already has a terminating symbol such as '\0'. As result your array has + 1 element. You can use '\0' to check that you have reached the end of a string.


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)


Write a program to concate the string without using strconcat function?

If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that


When one dimensional character array of unspecified length is assigned an initial value?

string[] str= new string[2]{"ss","gg"} for(int i=0;i<str.length;i++) { Response.wrirte(str[i]); }


Why do you need a null terminating string at the end of each string?

to indicate end of string


How can a stack determine if a string is a palindrome?

foreach char in string push on to stack create new string foreach char in string pop off and add to end of new string if new string equals old string palindrome else not palindrome //when you pop off the stack, the characters come off in reverse order, thus you have reversed the original string


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.