String is not appropriate for that. While it is possible to store a number in a string, additional conversions need to be done if you need the number for calculations. Instead, use an integer data type (if no decimals are required), or a real data type (if decimals are required). In Java, for example, you could use int (no decimals) or double (allows decimals).
"float" should be sufficient
String is not primitive data. Only char,int,double,and boolean are!
Strings are used to represent text data. This lets you work with names and other variables that hold text.
Number, string, binary string.
text data
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];
String - is primitive data typestring - is user defined data type
A string is a collection of words or characters in '' or "" it is also a data type.
A connection string in computing is a string that specifies how to connect to a data source and information about the data source. It is commonly used in database files.
A string is a collection of words or characters in '' or "" it is also a data type.
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.
yes