c array – warning: format not a string literal

When using printf, the format string is better be a string literal and not a variable:

printf("%s", str_a);

Leave a Comment