sizeof integer pointers ?
This commit is contained in:
parent
b1172d6c6e
commit
70d09f33a1
16
gowrikumar/src/06-ia64segfault.c
Normal file
16
gowrikumar/src/06-ia64segfault.c
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
/**
|
||||||
|
* :author: Dan Buch (daniel.buch@gmail.com)
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int* p;
|
||||||
|
p = (int*)malloc(sizeof(int));
|
||||||
|
*p = 10;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* vim:filetype=c:fileencoding=utf-8
|
||||||
|
*/
|
Loading…
Reference in New Issue
Block a user