C语言 杂货整理
C语言 杂货整理_逗号运算符C语言 杂货整理_#include_02
#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语言 杂货整理