Question Detail

Difference between static and dynamic memory allocation is

  • In static memory allocation memory to be allocated in preknown
  • In dynamic memory allocation memory to be allocated in preknown
  • There is no differnece
  • Not exact difference is mentioned
Similar Questions :

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

2. What is polymorphism

  • Ability to take more than one form
  • Ability to destroy destructor
  • Ability to create constructor
  • None of above

3. If value has not type, then the pointer pointing to this value will be known as

  • Empty pointer
  • Null pointer
  • Void pointer
  • None of above

4. Which among following has invalid syntax ?

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

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