Page 1 of 1

Can variable i be accessed by functions in another source file?

Posted: Wed Jul 13, 2022 7:54 pm
by answerhappygod
#include <stdio.h> int i; int main() { printf("%d\n", i); }
a) Yes
b) No
c) Only if static keyword is used
d) Depends on the type of the variable