é åã¸ã®ãã¤ã³ã¿ã¨é åã¸ã®ãªãã¡ã¬ã³ã¹ C/C++ ã®ãã¾ã使ãããªãæ©è½ã«ãé åã¸ã®ãã¤ã³ã¿ã¨é åã¸ã®ãªãã¡ã¬ã³ã¹ãããã¾ããããã§ã¯ãããããã©ã®ãããªãã®ãã¾ã¨ãããã¨æãã¾ãã C è¨èªã«ã¯é åã®å é è¦ç´ ã¸ã®ãã¤ã³ã¿ã¨ã¯å¥ã«é åã¸ã®ãã¤ã³ã¿ ãåå¨ãã¾ãããããã°ã©ãã³ã°è¨èªCã® 5.7 ã«å¤æ¬¡å é åãåãåãé¢æ°ã®ä¾ãè¼ã£ã¦ãã¾ãã 次ã®ããã°ã©ã ã§ã¯ãµã¤ãº 256 ã® char åã®é åãä½ãããã®é åã¸ã®ãã¤ã³ã¿ p ãä½ã£ã¦ãã¾ãã++p ãå®è¡ãã㨠p ã®æãã¢ãã¬ã¹ã¯ 256 ãã¤ãåé²ã¿ã¾ãã #include <stdio.h> int main() { char foo[256]; char (*p)[sizeof(foo)] = &foo; printf("%p\n", p); ++p; printf("%p\n", p); // 256 ãã¤ãåé²ã ret
{{#tags}}- {{label}}
{{/tags}}