Comma operator can return a value. : Comma Operator « Operator « C Tutorial






Comma operator returns the value of the rightmost operand.

#include<stdio.h>

main(){
    int i, j;
   
    printf("%d",(i = 0, j = 10));

}
10








5.9.Comma Operator
5.9.1.Comma operator
5.9.2.Comma operator can return a value.