Question PRG-C-0009
MediumWhat is the output of this program?
#include <stdio.h>
void tick(void) {
static int count = 0;
count++;
printf("%d ", count);
}
int main(void) {
tick();
tick();
tick();
return 0;
}
- A.
0 1 2
- B.
3 3 3
- C.
Sign up free to see the answer and a step-by-step explanation.