A function that does not return a value has a return type of _______.
- void
- int
- char
- bool
In C++, if a function is not returning any value, its return type is void. It indicates that the function does not return a value to the calling function.
Loading...
Related Quiz
- How does the compiler treat the conditions in a nested if-else structure?
- What happens if you try to delete memory using the delete operator more than once?
- In C++ STL, which algorithm is most suitable for rearranging elements in a range, so they are in reversed order?
- Which of the following data structures is not implemented as a container in C++ STL?
- A function without any parameters is declared with the keyword _______ in the parentheses.