download Mastguru Android App

Question Detail

Which among following has invalid syntax ?

  • #include
  • #include file
  • #include "file"
  • None of above
Similar Questions :

1. How to define a destructor

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

2. Can we overload constructors in C++

  • Yes
  • No

3. Declaring pointer more than one can cause

  • Trap
  • abort a program
  • error
  • none of above

4. Reference is like a

  • Pointer
  • Structure
  • Array
  • None of above

5. Which of the following cannot be inherited from the base class

  • Constructor
  • Friend
  • Both A and B cannot be inherited
  • Both A and B can be inherited
Read more from - C++ Programming Questions Answers - Chapter 1
Post a comment