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 we overload constructors in C++

  • Yes
  • No

2. Can #define accept parameters

  • Yes
  • No

3. Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited

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

  • ->
  • ::
  • .
  • >>

5. 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
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment