- 140 名前:デフォルトの名無しさん [2008/02/10(日) 11:03:41 ]
- #include <stdio.h>
main() { char x[3][7] = {"first","second","third"}; char *z[3] = {"first","second","third"}; char **p; p = z; p++; @ printf("%c\n",**p); A printf("%s\n",*p+1); B printf("%s\n",*(p+1)+1); これだと xの要素数は21個で ポインタ配列zの要素数は19個 @ABのprintfの表示は @がs Aがecond Bがhird でいいですかね?
|

|