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
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
0
Answer, j=10
When i=4
When i=4
Similar questions
Math,
21 days ago
Computer Science,
21 days ago
English,
21 days ago
Science,
1 month ago
Science,
1 month ago