Computer Science, asked by Ashwin8638, 9 months ago

Explain String data type.

Answers

Answered by gkleads8always
4

A string data type is traditionally a sequence of characters, either as a literal constant or as some kind of variable. The latter may allow its elements to be mutated and the length changed, or it may be fixed (after creation). A string is generally considered a data type and is often implemented as an array data structure of bytes (or words) that stores a sequence of elements, typically characters, using some character encoding.

Answered by Raghav1330
4

String data type is explained below :

- In computer programming languages it's a certain data category which is used to denote or specify certain content or text rather than numericals.

- This data category consists of specific characters which can contain either spaces or numbers.

- All the strings should be closed using

quotation marks so that the specific data is not denoted as any variable or numerical.

- For example if variable "1.25", is denoted as "Hello World!," then the variable is denoted as string data type.

Similar questions