Examveda
Examveda

What is the default storage class for global variables?

A. auto

B. static

C. extern

D. register

Answer: Option C


This Question Belongs to C Program >> Storage Class

Join The Discussion

Comments ( 1 )

  1. Amrutha Sharmith
    Amrutha Sharmith :
    2 months ago

    What will be the output of the following C code?
    #include
    void main()
    {
    int i = 2;
    do
    {
    printf("Hi");
    } while (i < 2)
    }
    A) Compile time error
    B) Hi Hi
    C) Hi
    D) Varies

Related Questions on Storage Class