Why the print statements after return won't execute plz explain | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why the print statements after return won't execute plz explain

19th Feb 2016, 6:46 PM
Ajay Pranav
Ajay Pranav - avatar
3 Answers
0
"...return a value from a function it stops!" that's the answer. remember, returned value not will print it stops to function and takes a value from it. what happened before the "return" it was last.
18th Nov 2015, 3:14 PM
Özer Yılmaztekin
Özer Yılmaztekin - avatar
0
yes after return your programe run the previous code you write before return and show answer it is the last work your comiler done after it nothing is printable
13th Jun 2016, 10:25 AM
Iman Ali
Iman Ali - avatar
0
When you type return the program gets terminated and hence the lines of code written after return do not get executed
27th Jun 2016, 9:17 PM
Aditya Narania
Aditya Narania - avatar