<< Prev Question Next Question >>

Question 8/17

What happens when you compile and run the following program?
#include <stdio.h>
int fun(void) {
static int i = 1;
i++;
return i;
}
int main (void) {
int k, l;
k = fun ();
l = fun () ;
printf("%d",l + k);
return 0;
}
Choose the right answer:

LEAVE A REPLY

Your email address will not be published. Required fields are marked *