<< Prev Question Next Question >>

Question 6/17

-
What happens if you try to compile and run this program?
#include <stdio.h>
int *f();
int main (int argc, char *argv[]) {
int *p;
p = f();
printf("%d",*p);
return 0;
}
int *f() {
static v = 1;
return &v;
}
Choose the right answer:

LEAVE A REPLY

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