c array – warning: format not a string literal March 7, 2023 by Tarik When using printf, the format string is better as a string literal than a variable: printf("%s", str_a);