#include
#include
void test(int **t1){
int *p;
p=(int *)malloc(sizeof(int));
*p=1;
*t1=p;
}
main()
{
int *t;
test((int **)&t);
printf("%d",*t);
free(t);
}
//잘돌아감....
*/
/*
#include
#include
void test(int *t1){
int *p;
p=(int *)malloc(sizeof(int));
*p=1;
t1=p;
}
main()
{
int *t1;
// t1=malloc(4);
test(t1);
printf("%d",*t1);
free(t1);
}
//안돌아감..
*/
/*
#include
#include
void test(int **t1){
int *p;
p=(int *)malloc(sizeof(int));
*p=1;
*t1=&p;
}
main()
{
int **t;