Comma operator Program in C

Comma operator Program in C
Comma operator Program in C

/*Program to understand the use of comma operator*/
#include<stdio.h>
int main(void)
{
	int a,b,c,sum;
	sum = (a=8,b=7,c=9,a+b+c);	
	printf("Sum=%d\n",sum);
	return 0;
}

Output:

Sum=24
c language tutorial learn c language study c language
Recent Posts