Please Explain Comma Operator in this Program

前端 未结 3 1993
迷失自我
迷失自我 2020-11-28 14:45

Please explain me the output of this program:

int main()
{    
    int a,b,c,d;  
    a=10;  
    b=20;  
    c=a,b;  
    d=(a,b);  
    printf(\"\\nC= %d\"         


        
3条回答
  •  感情败类
    2020-11-28 15:00

    The comma operator evaluates all its operands, then yields the value of the last expression.

提交回复
热议问题