大神快来,strcpy函数是否会导致溢出?
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
char *a, *b;
int i;
a = (char*) calloc(20, sizeof(char));
b = (char*) calloc(20, sizeof(char));
strcpy(a, "Graduate School of Information Science and Technology");
for(i = 0; i < 20; i++)
printf("b[%d] = %c¥n", i, b[i]);
return 0;
}
b[11] = T
请问 b[12] = ? 以及 b[13] = ?