What value does a function with return type void return?
- 0
- Null
- It doesn't return a value
- An undefined value
A function with a void return type doesn't return any value. It is often used for functions that perform an action but do not need to send a result back to the caller.
Loading...
Related Quiz
- Consider a scenario where you have a large dataset and you need to frequently erase and insert elements in the middle of the data. Which STL container should be avoided in order to prevent frequent reallocations and data movements?
- The _______ function is automatically called when an object is destroyed.
- In what situation might explicit template specialization be used in C++?
- In a for loop, if a continue statement is executed, then the control jumps to _______.
- Which of the following data structures is not implemented as a container in C++ STL?