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. Inline functions are invoked at

  • Run time
  • Compile time
  • Debug time
  • None of above

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

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

3. Which class has only one unique value for all the objects of class

  • this
  • friend
  • static
  • none of above

4. ios::ate is used for

  • Set the initial position at the start of the file
  • Set the last position at the end of the file
  • Set the initial position at the end of the file
  • Set the last position at the start of the file

5. cout is declared in the _____ standard file within the std namespace

  • outstream
  • stdin
  • iostream
  • None of above
Read more from - C++ Programming Questions Answers - Chapter 1