有个问题为什么用fgets会有一个用例没通过呢?求大佬解答 #include <stdio.h> #include <string.h> int main() { char str[1001]={0}; fgets(str,1001,stdin); for(int i=strlen(str)-2;i>=0;i--) { printf("%c",str[i]); } return 0; } 点赞 相关...
There are library functions available for most of the string operations which are a part of ‘string.h’; header file. However, some of the functions under it are also deprecated and should not be used. We shall have look at them while working with various string operations. ...