Question Detail

expression x.y represents as

  • member x of object y
  • member y of object x
  • member y of object pointed by x
  • all of above
Similar Questions :

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

  • True
  • False

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

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

3. How to define a destructor

  • X~() {}
  • X() {}~
  • X() ~{}
  • ~X() {}

4. what is the size of int datatype for 32 bit system

  • 1 byte
  • 2 byte
  • 4 byte
  • 8 byte

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