题目:
The following C program segfaults of IA-64, but works fine on IA-32.
int main() { int* p; p = (int*)malloc(sizeof(int)); *p = 10; return 0; }
Why does it happen so?
解答:
题目:
The following C program segfaults of IA-64, but works fine on IA-32.
int main() { int* p; p = (int*)malloc(sizeof(int)); *p = 10; return 0; }
Why does it happen so?
解答: