download Mastguru Android App

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. Can #define accept parameters

  • Yes
  • No

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. How to define a destructor

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

4. What is the meaning of base class in C++

  • Another class got inherit from this class
  • It inherit other class
  • It has a pointer variable
  • It is the first class declared

5. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment