Другие символы. NUL. Null. (No character- нет данных). Используется для передачи в случае отсутствия данных.
I was just trying to see how to check for the null terminating character in the char * array but I failed. I can find the length using the for loop
char * username; strcpy(username, "ted"); How do you set the pointer so its empty and does not hold the name ted?
> char array[SIZE] = {0}; Nothing wrong with this. It just assumes that the remaining SIZE-1 elements are also zero, so that's it, job done.
C-string (null-terminated char array) can be declared as char* or char[]. This is because C treats an array name as a pointer to the first element of the array.
strung=NULL; /* functions used to make up for my diminished.
1. Putting char into a java string for each N characters stackoverflow.com. I have a java string, which has a variable length.
let say I have, char test[20]; can I do like this : *test = NULL; Where did you get that? Certainely not from a good C-book. 'test' being an array, it's a constant