这个代码的输出
#include<stdio.h>#include<string.h>
int main(void)
{
int a, b; char c[20];
scanf_s("%s",&c);
a = strlen(c);
for (b =a-1; b>=0; b--)
printf("%c", c[b]);
printf("\n");
return 0;
}
输出是空白,为什么?不应该是输入的字符串 反向输出么?
2015-07-26 10:34
2015-07-26 10:37
2015-07-26 10:56
2015-07-26 11:06
2015-07-26 11:11
2015-07-26 11:29
2015-07-26 13:02
2015-07-26 13:07