fixed-size string

noun
UK /fɪkst saɪz strɪŋ/
US /fɪkst saɪz strɪŋ/

A fixed-size string is a string that can only hold a certain number of letters and cannot get longer or shorter.

The program stores the user's code in a fixed-size string of exactly ten characters.


OTHER MEANINGS

2. A string whose storage space is set when it is created and never changes.

In C, a fixed-size string is often declared as a char array with a set length.

3. A text field in a database that always uses the same amount of space, even for short values.

The CHAR column type stores a fixed-size string padded with spaces.

4. A string value in a programming language that cannot grow beyond its declared capacity.

Writing past the end of a fixed-size string can cause a buffer overflow.