Choose the correct execution result for following code:

#include <stdio.h>

int main(int argc, const char * argv[]) {
    
    int m = 12, n = 34;
    printf("%d%d", m, n);
    printf("%d%d\n", n, m);
    
    return 0;
}


 A. 12343412   B. 12341234   C. 12123434   D. 12343214

答案為(A), 列印順序分別為m, n, n, m可得答案12344312 

    文章標籤

    面試考古題

    全站熱搜

    Will 發表在 痞客邦 留言(0) 人氣()