+ 2
The answer is 9 but why?
#include<stdio.h> int i = 10; void f(void) { int i = 5; i = 7; } void g() { i = 9; } int main() { i = 1; g(); f(); printf("%d", i); return 0; }
0 Answers
#include<stdio.h> int i = 10; void f(void) { int i = 5; i = 7; } void g() { i = 9; } int main() { i = 1; g(); f(); printf("%d", i); return 0; }