download Mastguru Android App

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. Which is not C++ storage class

  • auto
  • register
  • static
  • iostream

2. Which among following has invalid syntax ?

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

3. Dereference operator is also called as

  • pointer
  • Reference operator
  • Offset operator
  • Deoffset operator

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

  • calloc()
  • malloc()
  • realloc()
  • All of above

5. what is a class in c++

  • Class in a collection of objects
  • Class has noting to do with object
  • It just have declaration of few variables
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment