Content deleted Content added
Colin dellow (talk | contribs) First addition of string to encyclopedia |
Colin dellow (talk | contribs) No edit summary |
||
Line 3:
For instance, a program may want to receive input of variable length. It requests 10 spaces from the computer into which to store characters. It receives the data to store, and appends a 0 after the data to signify the end of the string.
x x x x x x x x x x x <BR>
F R A N K 0 k f f w y
x x x x x x x x x x x <BR>
The above example is how "FRANK" would look in a 10 byte null-terminated string. Characters after the 0 are ignored by the computer.
|