Does after a return statement the execution of the functions stops? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Does after a return statement the execution of the functions stops?

11th Jul 2018, 11:20 AM
adarsh pandey
adarsh pandey - avatar
2 Answers
+ 1
Yes. But if that function is inside another function, it only stops the innermost function.
11th Jul 2018, 11:21 AM
James
James - avatar
+ 1
thanks James
11th Jul 2018, 11:22 AM
adarsh pandey
adarsh pandey - avatar