answersLogoWhite

0

What is the difference between array and string of array?

Updated: 8/16/2019
User Avatar

Wiki User

12y ago

Best Answer

When we declare an array of characters it has to be terminated by the NULL , but termination by NULL in case of string is automatic.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between array and string of array?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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 between a C plus plus string and a C-style string?

A std::string is an object that encapsulates an array of type char whereas a C-style string is a primitive array with no members. A std::string is guaranteed to be null-terminated but a C-style string is not.


What is the difference between string and char array?

3 differences.................. 1. length wise.... 2.initialization 3. null terminated length of char array is differ from string........ initialization of string is differ from char....... and string is null terminated...........


What is the difference between a string and a number?

In computer programming, a "string" usually refers to an array of characters. A string may consist of nothing (an empty string) or as many characters as are allowed in an array. To denote a string, surrounding a list of characters by double quotes is the typical standard.Strings:* "" * "abc" * "Cows say 'Moo!'" * "http://wiki.answers.com"Numbers are those fun symbols you remember from math class. The confusing part is when a string contains numbers ("123"). Usually a programming language will have a way to convert between a string of numbers and an actual number type, in case you happen to need to do math with the string.


What are the different issues if a string is implemented as a primitive or as a character array?

Even in languages where string is a type, it is still an array of characters. A computer can not represent a string as a primitive type. That said, the difference between using the programming language string object or an array or list if characters will differ based on language. Though in most languages which offer a string type, it would mean that you'd have to implement all the functions provided for you by the type on your own. A string object class simply provides a series of utility functions to manipulate a character array within.


Diff between string and array?

String and array are not related to one another so they have many differences. a. A string is used to hold alpha numeric values inside it b. An Array is used to hold multiple values of any primitive data type c. A String has operations like equals, concatenate, substring etc whereas an array does not have them d. You can iterate through an array but we cannot iterate through a string.


What is the array of string in c?

A string in C is stored in a 1 dimension array so an array of strings is simply a two dimension array.


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)


How do you convert a string into a character array?

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


What elements are in string?

A string is an array of characters.


How do you count the vowels in a string using PHP?

build an array of vowels then do a foreach on the array and then explode the string on the array value and the answer is -1 of the result


Is string is an object?

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