Comma operator : Comma Operator « Operator « C Tutorial






You can combine multiple expressions in a single expression using the comma operator.

#include<stdio.h>

main(){
  int i,j,k;
  k = (i = 4, j = 5);
  printf("k = %d",k);
}
k = 5








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