True or false | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

True or false

Void function: do not have a return type do not use a return statment to return a value.

13th May 2017, 4:22 PM
shad oow
shad oow - avatar
6 Answers
+ 5
Absolutely true.
13th May 2017, 4:26 PM
Vishnu ks
Vishnu ks - avatar
+ 3
@merkafter That's also a point.
13th May 2017, 4:46 PM
Vishnu ks
Vishnu ks - avatar
+ 3
true
13th May 2017, 5:00 PM
Nikhil
Nikhil - avatar
+ 2
I think it's true.
13th May 2017, 4:27 PM
Nhan Truong
Nhan Truong - avatar
+ 1
void function not return ...So ..It's true....
15th May 2017, 11:24 AM
Ram Naresh Arya
Ram Naresh Arya - avatar
0
But you CAN use a return; to end a function.
13th May 2017, 4:45 PM
merkrafter