Home / C Programming / Arrays :: Discussion

Discussion :: Arrays

  1. Which of the following function is more appropriate for reading in a multi-word string?

  2. A.

     scanf()

    B.

     gets()

    C.

     printf()

    D.

     puts()

    E.

     None of these

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    gets(); collects a string of characters terminated by a new line from the standard input stream stdin


Be The First To Comment