You're comparing a char * to a char *, yes, but this comparison is meaningless. It passes if the two pointers point to the same piece of memory. You can't use == to compare two strings, you have to use the strcmp() function, because C has no built-in support for strings outside of a few (and I mean few)...
But in reality, "char" is just a poor name choise to confuse everyone who tries to learn the language. A better name for it is int8_t, and you
Задачи по SQL запросам. Задание: 1 (Serge I: 2002-09-30). Найдите номер модели, скорость и размер жесткого диска для всех ПК стоимостью менее 500 дол. Вывести: model, speed и hd. SELECT model, speed, hd FROM PC WHERE price < 500. Задание: 2 (Serge I: 2002-09-21).
Char unsigned char signed char длинна Кааак Здравствуйте. char l = {0,0}; l = 0xff; Почему, меня, компилятор не посылает куда... Ошибка: "char *concat(char *,.)": невозможно преобразовать аргумент 1 из "const char [4]" в "char *" делал задание, но на строке 36 строке пишет, что "...
Casting int to char involves losing data and the compiler will probably warn you. Extracting a particular byte from an int sounds more reasonable and can be done like this
The char ** doesn't "hold" a series of strings at all (unlike container objects in higher-level languages than C). The variable c is just a pointer to a pointer
void printpattern (char c) { int n; for (n = 0; n < 5; ++ n) putchar(pattern[5*(c-'#') + n]==32?32:'#'); putchar(' ')
Format. #include <string.h> char *strchr(const char *string, int c)
Knock off int PrintBoard(char array[][3], int size, char currentMove); You are not using it anywhere. And change the equality comparison to assignment in
Длина строки char array. Массив строк. F() macro. Экономия памяти. Инструменты для char array.