Home / C Programming / Strings :: Discussion

Discussion :: Strings

  1. How will you print \n on the screen?

  2. A.
    printf("\n");
    B.
    echo "\\n";
    C.
    printf('\n');
    D.
    printf("\\n");

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    The statement printf("\\n"); prints '\n' on the screen.


Be The First To Comment