โช 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);
}
#include
int main()
{
int j;
for(j=0;j<3;j++)
foo();
return 0;
}
foo() {
static int i = 10;
i+=10;
printf("%d",i);
}