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\n", 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?