What is the use of void function?
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 British Columbia, Lives in Vancouver, Canada.
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-05 14:10:01
评论(499)
Helpful(122)
Helpful
Helpful(2)

Julian Davis
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.