The return type of a function that does not return any value is specified as _______.
- char
- int
- double
- void
The "void" return type specifies that a function doesn't return a value. It's used when the primary purpose of the function is to perform an action, not produce data.
Loading...
Related Quiz
- To check for possible errors or failures in file operations, you should check the _______.
- In C++ STL, which algorithm is most suitable for rearranging elements in a range, so they are in reversed order?
- In a class template, the keyword _______ is used to create an instance of the template.
- In C++ STL, the function _______ is used to remove consecutive duplicate elements in a range.
- How is a friend class defined in C++?