Examveda

Can variable i be accessed by functions in another source file?
#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


This Question Belongs to C Program >> Function

Join The Discussion

Related Questions on Function