C++20 sections · 1024 units
Open in Course

Quiz: Basic Input

Test your understanding

Check Your Understanding

What happens when user types 42 cats for int x; cin >> x;?

  1. A.x becomes 42cats as a string
  2. B.x becomes 42, buffer is empty
  3. C.Input fails because of the letters
  4. D.x becomes 42, cats stays in buffer
Start the roadmap to answer the quizzes and solve the challenges