I
I
Ilya1992018-06-06 22:20:53
C++ / C#
Ilya199, 2018-06-06 22:20:53

Is it possible to specify the Cyrillic alphabet in C language conditions?

if (tolower(symbol) == 'a' || tolower(symbol) == 'а') {
    addition();
  }

above is the condition that the compiler complains about
|| tolower(symbol) == 'a' - Cyrillic here
tolower(symbol) == 'a' - here Latin
removes the condition with Cyrillic, compiles and does not swear
, what could be the problem? maybe I wrote the condition incorrectly?
main.c:21:51: warning: multi-character character constant [-Wmultichar]
if (tolower(symbol) == 'a' || tolower(symbol) == 'a') {
The compiler error itself

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question