Question Detail

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

  • calloc()
  • malloc()
  • realloc()
  • All of above
Similar Questions :

1. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above

2. Default constructor has how many arguments

  • 1
  • 2
  • 3
  • 0

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. ios::ate is used for

  • Set the initial position at the start of the file
  • Set the last position at the end of the file
  • Set the initial position at the end of the file
  • Set the last position at the start of the file

5. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}
Read more from - C++ Programming Questions Answers - Chapter 1