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
Другие символы. 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.
[BCC32 Error] HDDSerial.cpp(49): E2034 Cannot convert 'wchar_t[256]' to 'char *' [BCC32 Error] HDDSerial.cpp(49): E2342 Type mismatch in parameter '__buffer' (wanted 'char *', got 'wchar_t *') [BCC32 Error]
Forum. General C++ Programming. remove \0 from char *.
char x = '0'; int y = '0'; char z = 48
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.
У NULL слишком важное значение в теории баз данных чтобы его заменить на пустое значение.
Is there a way to set a char variable to 0 or null or something so that it will basically reset my control variable.