Comma Operator in C
Comma Operator
On this page
Comma Operator
Program to use Size of Operators in c language
#include <stdio.h>
int main()
{
int a = 8, b = 7, c = 6, add;
add = a + b + c;
printf("add = %d\n", add);
return 0;
}
Output
add = 21
Steps Description
- Declare integer variable a, b, c
- Initialize variable a=8, b=7, c=6
- printf inbuild function to display value of addiction a + b + c