#include <stdio.h>

int main()

{

char *cBooks[] = {

"C程序设计语言",

"C专家编程",

"C和指针",

"C陷阱与缺陷",

"C primer Plus",

"带你学C带你飞"

}

char **byFishC;

//jiayuLoves存储指针变量地址的变量(即:指向指针的指针)

char **jiayuLoves[4];

int i;

byFishC = &cBooks[5];

jiayuLoves[0] = &cBooks[0];

jiayuLoves[1] = &cBooks[1];

jiayuLoves[2] = &cBooks[2];

jiayuLoves[3] = &cBooks[3];

jiayuLoves[4] = &cBooks[4];

printf("FishC出版的图书有:%s", *byFishC);

printf("小甲鱼喜欢的图书有:\n");

for(i=0; i<4; i++)

 {

//解析:*jiayuLoves(i)返回字符串数组地址,%s获取字符串的值

printf("%s\n",*jiayuLoves(i));

}

}

05-11 22:10