Which of the following reads in a string named x with one hundred characters?

  1. cin.getline(x, 100, '\n');

  2. cin.getline(100, x, '\n');

  3. readline(x, 100, '\n');

  4. read(x);


Correct Option: A

Find more quizzes: