Home / C Programming / Strings :: Discussion

Discussion :: Strings

  1. What will be the output of the program ?

     #include
      
      int main()
      {     
        printf(5+"Good Morning\n");  
        return 0; 
      } 

     

  2. A.

    Good Morning

    B.

    Good

    C.

    M

    D.

    Morning

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    printf(5+"Good Morning\n"); It skips the 5 characters and prints the given string.

    Hence the output is "Morning"


Be The First To Comment