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. What is getline() in c++

  • getline() extract the delimeter newline character from the input stream
  • getline() does not extract the delimeter newline character from the input stream
  • None of above

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

3. Meaning of PDB

  • Physical Database File
  • Program Database File
  • Program Direct File
  • None of above

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

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

5. Declaring pointer more than one can cause

  • Trap
  • abort a program
  • error
  • none of above
Read more from - C++ Programming Questions Answers - Chapter 1