C Quick Refresher

Simple Arithmetic
What is the output of the following program?

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


Student
Abishek M   28-Jan-23

60

Support Team
Support Team   28-Jan-23

very good. But not needed the answers in the comments box. Keep going... Thanks.
REPLY