What is the actual work performed by return 0 or return x (x is a variable)?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the actual work performed by return 0 or return x (x is a variable)??

15th Jul 2018, 9:13 AM
Shikhar gupta
Shikhar gupta - avatar
2 Answers
+ 5
By writing return statement It terminate function. It return particular value. Control is passed to statement from where function was called. Hope this helps☺️☺️.
15th Jul 2018, 9:22 AM
Meet Mehta
Meet Mehta - avatar
+ 1
thanks😊😊MEET MEHTA
23rd Jul 2018, 9:12 AM
Shikhar gupta
Shikhar gupta - avatar