What is a string in the context of software?

How does a computer store a sentence or a name or a paragraph?

It stores it as a sequence or “string” of characters - each character is a letter in the string.

So we is what we mean when we refer to a string in software.

For example in Javascript we might declare these strings:

var Name = 'Fred Johnson'; var Sentence = "The quick brown fox jumped over the lazy dog.";

or in C:

const char* pWords = "This is a sentence in C.";

 

Related pages