Viktor Kuzmenok - 2014-11-18

At inclusion in the program on C
printf ("%s", "constant");
The compiler gives the prevention: [Warning] of deprecated conversion from string constant to 'char ' [-Wwrite-strings]
That is the compiler has a problem when transforming a lower case constant to the massif of symbols ending a zero symbol. And how it is necessary?
The same, in Russian:
При включении в программу на C
printf ("%s","константа");
Компилятор даёт предупреждение: [ Warning ] deprecated conversion from string constant to 'char
' [ -Wwrite-strings ]
То есть у компилятора возникает проблема при преобразовании строчной константы в массив символов, оканчивающий нулевым символом. А как надо?