填空练习(指向指针的指针)
#include<stdio.h> #include<math.h> #include<malloc.h> #include<string.h> #include<stdlib.h> #include <time.h> main() { char *s[]={"man","woman","girl","boy","sister"},*p[5]; for(int i=0;i<5;i++){ p[i]=s[i]; } printf("%s\n",p[0]); }
#include<stdio.h> #include<math.h> #include<malloc.h> #include<string.h> #include<stdlib.h> #include <time.h> main() { char *s[]={"man","woman","girl","boy","sister"},*p[5]; for(int i=0;i<5;i++){ p[i]=s[i]; } printf("%s\n",p[0]); }