C Quick Refresher

for loop with multiple initializers.
What is the output of the following program?
int main()
{
int i, j;
long res=1;
for(i=1, j=5; j>3; i++, j--)
{
res=res + i * j;
}
printf("%ld", i);
}

No Comments..!

Change Subject: