C语言 杂货整理

C语言 杂货整理

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <time.h>

int main(void)
{
    int a = 10;
    int b = 20;
    // ,:将逗号后面的值赋值给变量c
    int c = (a, b+20);
    printf("%d\n", c);
    return 0;
}
逗号运算符使用

 

C语言 杂货整理

posted @ 2020-02-27 16:48  kevin.Xiang  阅读(164)  评论(0编辑  收藏  举报