IQOD #5
Consider the following code
What is the value of J at the end of the program
Code:
int counter(int i)
{
static int count = 0;
count = count + i;
return count;
}
void main()
{
int i, j;
for(i = 0; i <= 5; i++)
j = counter(i);
}
