+ 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; }

31st Aug 2020, 1:21 PM
Gujjula Pradeep Reddy
Gujjula Pradeep Reddy - avatar
1 Antwort