Home / C Programming / Pointers :: Discussion

Discussion :: Pointers

  1. What will be the output of the program ?

    #include  
    int main() 
    {    
       char *str;    
       str = "%s";    
       printf(str, "K\n");     
       return 0; 
    } 
    

  2. A.

    Error

    B.

    No output

    C.

    K

    D.

    %s

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    No answer description available for this question.


Be The First To Comment