Home / C Programming / Input / Output :: Discussion

Discussion :: Input / Output

  1. Out of fgets() and gets() which function is safe to use?

  2. A.
    gets()
    B.
    fgets()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    Because, In fgets() we can specify the size of the buffer into which the string supplied will be stored.


Be The First To Comment