Why void does not return any value?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Studied at the University of Tokyo, Lives in Tokyo, Japan.
Void functions are created and used just like value-returning functions except they do not return a value after the function executes. In lieu of a data type, void functions use the keyword "void." A void function performs a task, and then control returns back to the caller--but, it does not return a value.
2023-05-11 14:09:50
评论(499)
Helpful(122)
Helpful
Helpful(2)

Emily Turner
QuesHub.com delivers expert answers and knowledge to you.
Void functions are created and used just like value-returning functions except they do not return a value after the function executes. In lieu of a data type, void functions use the keyword "void." A void function performs a task, and then control returns back to the caller--but, it does not return a value.