#include <stdio.h>
void func1(int **p);
void func2(int (**p)[2]);
int main()
{
int *p1;
int (*p2)[2];
func1(&p1);
func2(&p2);
return 0;
}
void func1(int **p)
{
static int a[] = {0,1};
*p = a;
}
void func2(int (**p)[2])
{
static int a[][2] = {{0,1},{2,3},};
*p = a;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp2b2lkIGZ1bmMxKGludCAqKnApOwp2b2lkIGZ1bmMyKGludCAoKipwKVsyXSk7CgppbnQgbWFpbigpCnsKCWludCAqcDE7CglpbnQgKCpwMilbMl07CgoJZnVuYzEoJnAxKTsKCXByaW50ZigicDEgJWRcbiIsIHAxWzFdKTsKCWZ1bmMyKCZwMik7CglwcmludGYoInAyICVkXG4iLCBwMlsxXVsxXSk7CglyZXR1cm4gMDsKfQoKdm9pZCBmdW5jMShpbnQgKipwKQp7CglzdGF0aWMgaW50IGFbXSA9IHswLDF9OwoJKnAgPSBhOwp9Cgp2b2lkIGZ1bmMyKGludCAoKipwKVsyXSkKewoJc3RhdGljIGludCBhW11bMl0gPSB7ezAsMX0sezIsM30sfTsKCSpwID0gYTsKfQo=