//#include "stdafx.h"
#include
#include
#include
/*
*实现二级指针
*author:whish...char[][]方式
int mainStack()
{
char array[3][5] ={{'q','w','e','r','b'},{'a','s','d','f','n'},{'z','x','c'...,'v','m'}};
for(int i = 0;i<3;i++)
{
for(int j=0;j<5;j++)
{
printf("pa[%d][%d]:%c\t",i,j,*(*(array...+i)+j));
}
printf("\n");
}
return 0;
}
///2.行分配在栈上,列分配到堆上 通过指针数组方式
int mainStackHeap()
{
char*...//free(pa);
//pa = NULL; //因为是stack to heap so can't free pa
return 0;
}
///3.行分配在堆上,列分配到堆上 通过二级指针方式