ä»åã¯ã¡ãã£ã¨æè¡çãªè©±ãã ç§ãé¡ãåºãã¦ãã西è.rb/æ±ç.rb ã®ã¡ã³ãã¼ã®æ¹ããCè¨èªã®è³ªåãåãã¾ããã Rubyã®åå¼·ä¼ãªã®ã«Cè¨èªã®è©±é¡ãåºã¦ãããã¨ããã¨ããããã®ã³ãã¥ããã£ã®ããã¨ããã§ããæã®æ·±ããã¡ã³ãã¼ã®æ¹ã®å¼·ãåä¸å¿ãæãã¾ããã ãã®æ¹ãRubyã¯ããªããªã§ãããCè¨èªã¯æè¿ä½¿ãå§ããããã§ã #include <stdio.h> main() { char str[] = "hogehoge"; â¦(1) char *str = "hogehoge"; â¦(2) *str = 'f'; printf("%s\n", str); } ããããã³ã¼ããæ¸ããã¨ããæååã®è¨å®å ãé åã«ããããã¤ã³ã¿ã«ãããã§åããå¤ããã®ã¯ãªããï¼ä¸æè°ã ã£ãããã§ãã char str[] = "hogehoge"; â¦(1) ã®ã¨ãã¯ãå é 1æåãfã«ç½®ãæãããã¦ãçã
{{#tags}}- {{label}}
{{/tags}}