+ 3
break only stops the loops iterations. The return statement stops the function further execution, and control is returned to the calling statement with return value. return used in functions only while break is used in transfer control statement like loops, switch (matches - in python) ..
22nd Nov 2022, 10:51 AM
Jayakrishna 🇼🇳
0
Break statement is used to stop iterations of loop. Return function is used to stop the execution of a function.
27th Nov 2022, 11:41 AM
Anonymous
Anonymous - avatar