What is the output of the following problem ?


Loading

โœช Choose the correct option.

What is the output of the following problem ?


#include

int main()

{

int j;

for(j=0;j<3;j++)

foo();

return 0;

}

foo() {

static int i = 10;

i+=10;

printf("%d",i);

}

A. 20 20 20
B. 20 30 40
C. 40461
D. None of these