é¢ç½ããã¨ã«ãp == *p ã§ãããããã¯ãã¤ã³ã¿ãæã対象ãé åã§ãããã¤ã³ã¿ã§ã¯ãªããããéæ¥åç §ãçæãããªãã®ã§ããï¼éã«è¨ãã°ãã¤ã³ã¿ã®å ´åã«ã¯ã*p ãéæ¥åç §ããã¦ãp != *p ã«ãªãï¼ã ä¸ã®è¡¨ã®çµæã¨ãäºæ¬¡å é åã®ã·ã³ãã« x ã¯ãå®è³ªä¸ä¸æ¬¡å é åã§ãããã¨ããã次ã®ãã£ã¹ãã¯æåãããã¨ã«ãªãã int *p = (int *)x; ã ãã次ã®ããã«æ¸ããã int x[10][10]; int i; int *p = (int *)x; for( i = 0; i < 100; i++ ) { *p++ = i; } printf( "x[5][5] = %d\n", x[5][5] ); ãã㯠x ãå®è³ªä¸ä¸æ¬¡å ã®ãã¤ã³ã¿ã§ãããã¨ã示ãã¦ããã ãã®äºæ ã¯é¢æ°å¼æ°ã®å ´åãåæ§ã§ãããäºæ¬¡å é åã¨ãã¤ã³ã¿ã¯æ··åããããããã int (*p)[10] ã¨ã¯ä¸
{{#tags}}- {{label}}
{{/tags}}