c 查漏补缺1

来源:互联网 发布:网络剧上瘾全集观看 编辑:程序博客网 时间:2024/04/30 08:20
#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