download Mastguru Android App

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. What is inheritance

  • Inheritance allows one class to reuse the state and behavior of another class.
  • It deals with dangling pointers
  • It deals with void pointers
  • It is type of class declaration

2. 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

3. Inline functions are invoked at

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

4. Declaring pointer more than one can cause

  • Trap
  • abort a program
  • error
  • none of above

5. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment