Home / C Programming / Arrays :: Discussion

Discussion :: Arrays

  1. What will be the output of the program ?

    #include<stdio.h>

    void main()

    {

    printf(5+"Good Morningn");

    }

  2. A.

     Good Morning

    B.

     M

    C.

     Good

    D.

     Morning

    E.

     None of these

    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