String in C is basically a Character 1-D array, whose last character is a NULL ['\0'].
It is declared as follows:
char array_name[size];
Ex.
char wiki[10];
String - is primitive data typestring - is user defined 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];
Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.
A string is a collection of words or characters in '' or "" it is also a data type.
Yes.
String is not primitive data. Only char,int,double,and boolean are!
String - is primitive data typestring - is user defined 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];
A string is a collection of words or characters in '' or "" it is also a data type.
Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0] Arrays of chars are strings. there is a built in librray, that handles string string.h but the data-type is held as arrays of chars. char[10] c="string"; translate to ['s','t','r','i','n','g',\0]
Depends on the context of the question you were asking from, there are 2 distinct answers: Yes and NO. In the narrowest definition, any array is NOT a primitive data type in C#. Hence a string array is NOT a primitive data type in that context. A string itself, however, is a primitive data type. Some developers would like to extend the definition of "primitives" into the arrays, collections, and Enumeration. Thus, in this context, an array of string IS a primitive data type.
A string is a collection of words or characters in '' or "" it is also a data type.
The following is not a registry data type: String Array.
Yes.
C doesn't have String data-type, so don't use it.
Descriptions are best represented using a character array (string) data type.
Character(-string).