Let's say we have following code:
int func(char str[], int len) {
// Don't return anything here.
}
int main() {
char str[] = "Hello";
int result = func(str, strlen(str));
printf("%d
", result);
}
It will print some string value -1679929632 on my computer. And it changes from time to time when I execute.
Can anyone explain why this happen?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…