2012.05.16 P.295 //PointerOperationResult.c #include int main(void) { int * ptr1 = 0x0010; // put pointer address to ptr1 double * ptr2 = 0x0010;// put pointer address to ptr2 printf("%p %p \n", ptr1+1, ptr1+2); // increase +4 and +8 , because ptr is int variable printf("%p %p \n", ptr2+1, ptr2+2);// +8 +16 double printf("%p %p \n", ptr1 , ptr2); // print out ptr1, ptr2 ptr1++; // increase 4 ptr2++; // inc.. 더보기 이전 1 다음