Computer Science, asked by bujujbujuk, 1 month ago

What is the value of J, when I = 4 in the below program:
void main()
{
int i, j;
for (i = 0; i <= 5; i++)
j = counter();
}
int counter(int i)
{
static int count = 0;
count = count + i;
return (count);
}​

Answers

Answered by hashinisaravanan009
2

Answer:

Hey there here your answer!

Explanation:

Answer:

10 66 1 mark if correct reason given

15 20 1 mark if correct reason given

Answered by amanarai89
0
Answer, j=10
When i=4
Similar questions