æ¤ç´¢ã®ãã¥ããC++ã®è¨å·ã®æå³ãã¾ã¨ãã¦ã¿ã¾ãããC++11ãC++14ãã¯ããã¨ãã¦ç¶²ç¾ çã«éããã¤ããã§ãã Cè¨èªã«ã¤ãã¦ã®è¨è¿°ãããã¾ãããå ±éããè¨å·ã§ãã£ã¦ãC++ã¨Cã§ã¯ææ³ãåä½ã®åç´°ãç°ãªãå ´åããããã®ã¾ã¾é©ç¨ã§ããªããã¨ãããã¾ããã¾ãæ²è¼ãã¦ããè¨æ³ã¯èª¬æã®ããã«è¼ãã¦ããã®ã§ãã£ã¦ãã¹ã¦ãæ¨å¥¨ã§ããããã§ã¯ãªããã¨ã«ã注æãã ãããç¨èªãåé¡ã解説ã¯ããªãããå æ¸ã§ãã å[è¦ç´ æ°]é åå(è¦ç´ æ°ã¯å®æ°ã§ãªããã°ãªããªããè¦ç´ æ°ãçç¥ããåã¯ä¸å®å ¨å)ã typedef int array[5]; //é ååint[5]ã«arrayã¨ããååãä»ããã void f(int ptr[]); //é¢æ°ã®å®£è¨ã«ç¨ãã¦void f(int* ptr);ã¨åã void f(int ptr[5]); //ãã®å ´åè¦ç´ æ°ã®è¨è¿°ã¯ç¡æå³ã§ä¸è¨ã¨åãã //åçé åã®ç¢ºä¿(ã¾
{{#tags}}- {{label}}
{{/tags}}