Home / C Programming / Control Instructions :: Discussion

Discussion :: Control Instructions

  1. If scanf() is used to store a value in a char variable then along with the value a carriage return(\r) also gets stored it.

  2. A.
    True
    B.
    False

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    No, the carriage return tells the compiler to read the input from the buffer after ENTER key is pressed.


Be The First To Comment