English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I need to know what a terminal zero is...
Whenever I run a search, I just get something about hacker software, which isn't nessecary.

2007-01-11 10:25:14 · 1 answers · asked by andrea 1 in Computers & Internet Programming & Design

1 answers

do you mean terminating zero? if so, then it has to do with strings. It is used to mark the end of a string. example, in the string
char string[] = "hello";
string[0] would be h
string[1] would be e
string[2] would be l
string[3] would be l
string[4] would be o
string[5] would be 0 (zero)
when you use string functions, they look for the end of string by looking for that zero. if its not there, then it doesnt know where the end is.

2007-01-12 01:22:40 · answer #1 · answered by justme 7 · 0 0

fedest.com, questions and answers