Thảo Justin
New member
What is the output of the code below?
A. 1 2
B. 1 1
C. null
D. 1 3
Code:
#include<stdio.h>
int function()
{
static int c = 0;
c++;
return c;
}
int main()
{
printf("%d ", function());
printf("%d ", function());
return 0;
}
B. 1 1
C. null
D. 1 3