Home / C Programming / Command Line Arguments :: Discussion

Discussion :: Command Line Arguments

  1. What will be the output of the program

    #include
     void fun(int);  
    
     int main(int argc)
     {    
         printf("%d ", argc);       
         fun(argc); 
         return 0; 
    } 
    void fun(int i) 
     {    
        if(i!=4)      
            main(++i);
     } 
    

  2. A.

    1 2 3

    B.

    1 2 3 4

    C.

    2 3 4

    D.

    1

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No answer description available for this question.


Be The First To Comment