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 operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>

2. Reference is like a

  • Pointer
  • Structure
  • Array
  • None of above

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

4. If no constructor is there, then compiler assumes the class to have a default constructor with no arguments

  • True
  • False

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
Post a comment