Can variable i be accessed by functions in another source file?
#include <stdio.h>
int i;
int main()
{
printf("%d\n", i);
}
#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
Answer: Option A

Join The Discussion