sizeof integer pointers ?

This commit is contained in:
Dan Buch 2011-06-18 15:27:23 -04:00
parent b1172d6c6e
commit 70d09f33a1

View 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
*/