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. All members of class have which access to its members

  • private
  • public
  • protected
  • depends

2. Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above

3. expression x.y represents as

  • member x of object y
  • member y of object x
  • member y of object pointed by x
  • all of above

4. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

5. Which of the following functions below can be used Allocate space for array in memory

  • calloc()
  • malloc()
  • realloc()
  • All of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment