Question Detail

In C++ Functions can returns ?

  • arrays
  • reference
  • objects
  • all of above
Similar Questions :

1. A variable is defined within a block in a body of a function. Which of the following are true ?

  • It is visible from the point of definition to the end of the program.
  • It is visible throughout the function.
  • It is visible from the point of definition to the end of the block.
  • It is visible throughout the block.

2. The symbol ** __ .

  • can be overloaded by changing its datatype.
  • cannot be overloaded, as on overloading its meaning shall be changed.
  • can be overloaded.
  • cannot be overloaded as it is not a C++ operator.

3. Can we define array of classes in c++ ?

  • Yes
  • No

4. What is actual syntax of destructor in c++ ?

  • !Classname( )
  • @Classname( )
  • $Classname( )
  • ~Classname( )

5. The function used to define the task assigned to an operator is ?

  • Virtual function
  • Static function
  • Operator function
  • Friend function
Read more from - C++ Programming Questions Answers - Set 2