Question Detail

Which among following has invalid syntax ?

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

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

2. Can #define accept parameters

  • Yes
  • No

3. Meaning of deed copy is

  • A deep copy creates a copy of the dynamically allocated objects too
  • A deep copy just copies the values of the data as they are
  • A deep copy creates a copy of the statically allocated objects too
  • Both A and C

4. Which is boolean operator for logical and

  • &
  • ||
  • &|
  • &&

5. Can we overload constructors in C++

  • Yes
  • No
Read more from - C++ Programming Questions Answers - Chapter 1