edgar 的窝

Happy coding

有趣的 C trigraph语法

编译运行下面的代码会有什么样的结果^o^

??=include <stdio.h>                         /* #          */
 
int main(void)
??<                                          /* {          */
        char n??(5??);                       /* [ and ]    */
 
        n??(4??) = '0' - (??-0 ??' 1 ??! 2); /* ~, ^ and | */
        printf("%c??/n", n??(4??));          /* \, [ and ] */
        return 0;
??>                                          /* }          */
 

 

 

参考:http://en.wikipedia.org/wiki/C_trigraph

 

开张了

闲逛时,发现了这个有趣的blog系统(域名比较有意思),特地申请了一个