#include <stdio.h>
#include <string.h>
int main(void)
{
char a[50];
while (scanf("%s",a)!=EOF){
int i=0;
while (a[i]!='\0'){
a[i]=a[i]-7;
i++;
}
printf("%s",a);
}
return 0;
}
打的程式自己測是正確的,但丟給測資測卻跑出
系統呼叫了 abort 函式! *** stack smashing detected ***: terminated Aborted (core dumped)
為什麼?