String (computing)

What is a string?
String is mutable or immutable sequence of characters. String can be assigned to variable or constant.

┌─────────────┐
│E|X|A|M|P|L|E│
└─────────────┘
   ↑
character

Strings have static or dynamic length?
Both, depending on programming language. Strings can have fixed length (staticaly allocated) or variable length (dynamically allocated).

Main purpose of strings?
Store human-readable text, like words and sentences, which are used to communicate information (exchange) from a computer program to the user of the program.

String datatype

Strngs (Unix)

Unix program that finds and prints the strings of printable characters in files.

# Print all strings in a binary and limit results to strings at least 10
# characters long and prefix each result withh digit or hex offset
strings -n n -t d[x] path/to/file

String literal

TODO: add term