English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

7 answers

A character array consists of single characters. A string array consists of groups of characters.

2006-07-09 23:36:55 · answer #1 · answered by Zombie 7 · 0 0

A string is a character array.
A string array is an array of strings.

2006-07-09 23:51:06 · answer #2 · answered by Anonymous · 0 0

A character array consist of single characters while string array consist of s group of characters.

2006-07-09 23:46:09 · answer #3 · answered by benvalyne 2 · 0 0

The Character array is group of characters (in their ASCII codes).
They are generally one dimensional.

There is no termination symbol for this.

BUt the string array is group of strings (which is again group of characters)
It is mandatory to have two dimensional array for a string array.

String array is terminated with '\0'

2006-07-09 23:44:03 · answer #4 · answered by sudhanshu2003 2 · 0 0

In C a charachter array is a array storing charachters. A string is a charachter array ending with '\0' character which marks end of string. A charachter array containing 'a', 'b', 'c', 'd', '\0', 'e', 'f', 'g' is a charachter array with 8 charachters, but is a string with 4 charachters as fifth element '\0' marks the end of string.

When you say string array, it can mean a array of pointers each pointing to a string.

2006-07-09 23:42:13 · answer #5 · answered by MeinHoonNa 1 · 0 0

you are a real curious boy.

character array= a line of characters. note there is always a null char in every char array.

null char= a "bank" space/char==no actual use =p


string array is a actually the same.
string= line of "something"
array= a specific line of string

hope that helped you =p

2006-07-09 23:58:31 · answer #6 · answered by icefiring123 3 · 0 0

even as u evaluate in c software language, then string isn't a datatype. actual string skill sequence of characters.. and if we'd like to take i/p as a string or provide o/p as a string we would want to we use array of characters. yet in enhance language String is call of sophistication and we are able to carry out many moves utilising that classification In c we've many operations on String would nicely be utilized by using applications of String.h header report. String would nicely be declared as char str[d3d944682a44259755d38e6d163e820d3d944682a44259755d38e6d163e820]; the following d3d944682a44259755d38e6d163e820d3d944682a44259755d38e6d163e820 is length of string its array of characters yet even as u use it as string we purely write str desire i helped u..

2016-10-14 07:29:10 · answer #7 · answered by season 4 · 0 0

fedest.com, questions and answers