#define _CRT_SECURE_NO_WARINGS
#include <stdio.h>
#include<stdlib.h>
#include<string.h>
void printp(char **p)
{
printf("%p\n",p);
printf("%p\n",*p);
printf("%p\n",**p);
}
void printp1(char *p)
{
printf("%p\n",p);
printf("%p\n",*p);
}
void main()
{
//char *p[]={"hojanan","hojing"};
char *p="test";
/*char **p1;
char p2;
char **********p3;
char ****p4;
*/
printp(&p);
printf("\n");
printp1(&p);
//printf("%d %d %d %d %d",sizeof(p),sizeof(p1),sizeof(p2),sizeof(p3),sizeof(p4));
system("pause");
return;
}
|