12 lines
282 B
C
12 lines
282 B
C
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
int num = 2147483647;// 0x7fffffff
|
|
int *pi = #
|
|
short *ps = (short*)pi;
|
|
printf("pi: %p Value(16): %x Value(10): %d\n", pi, *pi, *pi);
|
|
printf("ps: %p Value(16): %hx Value(10): %hd\n", ps, *ps, *ps);
|
|
return 0;
|
|
}
|