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. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments

  • True
  • False

2. If value has not type, then the pointer pointing to this value will be known as

  • Empty pointer
  • Null pointer
  • Void pointer
  • None of above

3. Meaning of deed copy is

  • A deep copy creates a copy of the dynamically allocated objects too
  • A deep copy just copies the values of the data as they are
  • A deep copy creates a copy of the statically allocated objects too
  • Both A and C

4. What is the value of sizeof(char)

  • 1
  • 2
  • 4
  • 8

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

  • ;
  • :
  • >>
  • <<
Read more from - C++ Programming Questions Answers - Chapter 1