c array - warning: format not a string literal

后端 未结 6 1740
终归单人心
终归单人心 2020-12-25 09:45

I\'m attempting to learn C and already I\'ve run into an issue. I assume its trivial but I need to know it. I have written:

#include 
#include         


        
6条回答
  •  醉话见心
    2020-12-25 10:48

    Please read the warning 'no format arguments' - i.e. no % in the string.

    Try printf("%s", str_a);

提交回复
热议问题