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 procedure
Другие символы. NUL. Null. (No character- нет данных). Используется для передачи в случае отсутствия данных.
> 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.
char x = '0'; int y = '0'; char z = 48
У NULL слишком важное значение в теории баз данных чтобы его заменить на пустое значение.
char* is pointer to a char. char[] is an incomplete type and indicates a character array. std::string is a string (class) from the standard (template) library.
000 000 0x00 00000000 NUL (Null char.) 001 001 0x01 00000001 SOH (Start of Header). 002 002 0x02 00000010 STX (Start of Text).