2011-01-30 87 views

回答

15

printf返回打印的字符數,所以這裏的解釋是:

printf("%d",printf("%d %d",2,2) & printf("%d %d",2,2)); 
\_________/ \_________________/ | \_________________/ 
    |    |   |   | 
    |   prints "2 2"  | prints "2 2" 
    |   and returns 3 | and returns 3 
    |       | 
    |     computes 3 & 3 
    |     (which equals 3) 
    | 
prints "3" 
+2

我喜歡你的答案更好。 – GManNickG 2011-01-30 09:39:21

相關問題