Home » C Programming » Variables » Question
  1. Can variable p be accessed by functions in another source file?
    #include <stdio.h>
    int p;
    int main()
    {
    printf("%d\n", p);
    }
    1. No
    2. Yes
    3. Depends on the type of the variable
    4. Only if static keyword is used
    5. None of these
Correct Option: B

Yes



Your comments will be displayed only after manual approval.