meaning of this scanf { scanf(“%[^\n]%*c”, s);} in c

后端 未结 0 1677
时光取名叫无心
时光取名叫无心 2020-12-23 23:23
int main()

{

char s[100];

char s1[] ={"Hello, World!"};

scanf("%[^\\n]%*c", s); // The statement that we are interested in//

printf("%s         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题