Void

-4

What is the output of this program?

1.
    #include 
2.    
    using namespace std;
3.    
    int main()
4.    
    {
5.    
        void a = 10, b = 10;
6.        
        int c;
7.        
        c = a + b;
8.        
        cout << c;
9.        
        return 0;
    }
A. 20
B. compile time error
C. runtime error
D. none of the mentioned

-3

Choose the incorrect option

A. void is used when the function does not return a value.
B. void is also used when the value of a pointer is null.
C. void is used as the base type for pointers to objects of unknown type.
D. void is a special fundamental type.

-2

What does the following statement mean?
 void a;

A. variable a is of type void
B. a is an object of type void
C. declares a variable with value a
D. flags an error

-1

____ have the return type void?

A. all functions
B. constructors
C. destructors
D. none of the mentioned

0

Which of the following will not return a value?

A. null
B. void
C. empty
D. free