180. Static Memory

Question.1

A function has a static local counter:

void count() {
   static int n = 0;
   n++;
   printf("%d ", n);
}

count(); count(); count();

What is the output?

Need Help? Refer to the Quick Guide below

Select Answer