#include <stdio.h>

int main()

{

unsigned int val = 2700087328;

// 10100000(160) 11110000(240) 00010000(16) 00100000(32)

unsigned char *p2 = (unsigned char *)&val;

printf("address of val is %p\n", &val);

printf("value of *p2 is %d\n", *p2);

printf("address of p2 is %p\n", p2);

printf("value of *(p2+1) is %d\n", *(p2+1));

printf("address of p2+1 is %p\n", p2+1);

printf("value of *(p2+2) is %d\n", *(p2+2));

printf("address of p2+2 is %p\n", p2+2);

printf("value of *(p2+3) is %d\n", *(p2+3));

printf("address of p2+3 is %p\n", p2+3);

return 0;

}


아무튼 여기서 unsigned char *p2 = (unsigned char *)&val; 이게 뭐 한거죠? 쉽게 설명 부탁드려요..