Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. What will be the output of the program ?

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

  2. A.

    char *str = "char *str = %c%s%c; main(){ printf(str, 34, str, 34);}"; main(){ printf(str, 34, str, 34);}

    B.

    char *str = %c%s%c; main(){ printf(str, 34, str, 34);}

    C.

    No output

    D.

    Error in program

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    No answer description available for this question.


Be The First To Comment