gistfile1.md ifå¼ / ifæ ã®æ¡ä»¶ç¯ã§ã左辺ã«å®æ°ãæ¸ãã¹ãè¨èªã¯ãããï¼ @ajiyoshi.gist twitterãããªããã¦ãããã®è©±é¡ãæã®Cã³ã³ãã¤ã©ã¯ãifæã®æ¡ä»¶ç¯ã§ä»£å ¥ãæ¸ãã¦ãæå¥ãè¨ããªãã£ãã®ã§ããã®ãããªã³ã¼ãã«ä½ã®è¦åãåºãªãã£ãã #include<stdio.h> int main() { int x = 0; /* ããããæå³ã¨éãã x == 1 ã¨æ¸ãã¹ãã§ãã£ã ããã§ã¯å¸¸ã«å®è¡ããã¦ãã¾ã */ if ( x = 1 ) { puts("æ®å¿µ"); } } ãããããã®ããã«æ¸ãã°ãã³ã³ãã¤ã«ã¨ã©ã¼ã«ãªãããã種ã®èª¤ããã³ã³ãã¤ã©ã«è¦ã¤ãããããã¨ãã§ãããã¨ããã®ãããè害ãã¨ããã人ã®ä¸»å¼µã§ããã /* ããã¯ã³ã³ãã¤ã«ã¨ã©ã¼ã«ãªã */ if ( 1 = x ) { puts("æ®å¿µ"); } ãã使ã£ã¦ããç°å¢ããã³ã³ã
{{#tags}}- {{label}}
{{/tags}}