#include <stdio.h> #include <malloc.h> int main() { char * p1, * p2; p1=(char *)malloc(2); p2=(char *)malloc(2); printf("&p1=%#X p1=%#X\n", &p1, p1); printf("&p2=%#X p2=%#X\n", &p2, p2); return 0; }
时间: 2024-10-10 06:06:13
#include <stdio.h> #include <malloc.h> int main() { char * p1, * p2; p1=(char *)malloc(2); p2=(char *)malloc(2); printf("&p1=%#X p1=%#X\n", &p1, p1); printf("&p2=%#X p2=%#X\n", &p2, p2); return 0; }