download Mastguru Android App

Question Detail

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

  • calloc()
  • malloc()
  • realloc()
  • All of above
Similar Questions :

1. Every class has atleast one construtor

  • True
  • False

2. Which arithmetic operation can be done in pointer

  • Multiplication
  • Division
  • Addition
  • None of above

3. Which operator is used to define a member of a class from outside the class definition

  • ->
  • ::
  • .
  • >>

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

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