c 查漏補缺1

#include<stdio.h>
#include<stdlib.h>
void fun(int n) { n++; }
int main()
{
    int a = 1;
    fun(a);printf("%d",a);
    system("pause");
    return 0;
}

輸出1

#include<stdio.h>
#include<stdlib.h>
int main()
{
    char a = 3, b = 6, c;
    c = (a^b) ;
    printf("%d",c);
    system("pause");
    return 0;
}

^表示異或,輸出20

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章