Question Detail

What is getline() in c++

  • getline() extract the delimeter newline character from the input stream
  • getline() does not extract the delimeter newline character from the input stream
  • None of above
Similar Questions :

1. Can #define accept parameters

  • Yes
  • No

2. \r is used for

  • carriage return
  • new line
  • end of the line
  • vertical tab

3. Inline functions are invoked at

  • Run time
  • Compile time
  • Debug time
  • None of above

4. How we mark the end of c++ statement

  • ;
  • :
  • >>
  • <<

5. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments

  • True
  • False
Read more from - C++ Programming Questions Answers - Chapter 1