/** * :author: Dan Buch (daniel.buch@gmail.com) */ #include #include int main() { int* p; size_t size_of_int = sizeof(int); printf("sizeof(int) = %d\n", size_of_int); p = (int*)malloc(sizeof(int)); size_t size_of_p = sizeof(p); printf("sizeof(p) = %d\n", size_of_p); *p = 10; size_t size_of_ptr_p = sizeof(*p); printf("sizeof(*p) = %d\n", size_of_ptr_p); return 0; } /* vim:filetype=c:fileencoding=utf-8 */