Home / C Programming / Declarations and Initializations :: Discussion

Discussion :: Declarations and Initializations

  1. Point out the error in the following program.

    #include 
    int main() 
    {    
     void v = 0;      
    
     printf("%d", v);     
    
     return 0; 
    
    } 
    

  2. A.

    Error: Declaration syntax error 'v' (or) Size of v is unknown or zero.

    B.

    Program terminates abnormally.

    C.

    No error.

    D.

    None of these.

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment