It's not clear from the question what you mean by "work". However character data types (char and wchar_t) are intended to store character codes and they work exactly the same whether as a single variable or as an array of characters. If you want to use the array as a string, however, remember to include a null-terminator at the end of the string.
array of character data type which is terminated by null character
Descriptions are best represented using a character array (string) data type.
no
That rather depends on the underlying type. For any given type T, an array of type T is user-defined if T is user-defined, otherwise it is built-in. For example: #include<string> // required to use std::string std::string s[42]; // user-defined array int i[42]; // built-in array Here, s is a user-defined array because std::string is a user-defined type, whereas i is a built-in array because int is a built-in type.
an array is a collection of the same data type.
array of character data type which is terminated by null character
Descriptions are best represented using a character array (string) data type.
no
That rather depends on the underlying type. For any given type T, an array of type T is user-defined if T is user-defined, otherwise it is built-in. For example: #include<string> // required to use std::string std::string s[42]; // user-defined array int i[42]; // built-in array Here, s is a user-defined array because std::string is a user-defined type, whereas i is a built-in array because int is a built-in type.
An array is used to store data having the same data type.
#define MaxSize (20) double Data[MaxSize]; int i; for (i=0; i<MaxSize; i++) Data[i] = i*i;
An array.
an array is a collection of the same data type.
Yes you can store non primitive data type variables in an array. String is a non primitive data type. You can declare a string array as: String a[]=new String[10];
No, it can be array, structure or union as well.
An array element has the same type as the array name.
You can use cin which located in iostream.h You have to use certain data type to read string, for instance, array of char