Return Statement

Return Statement

return statement is used to transfer program’s control from called function to calling function, it’s secondary task is to carry value from called function to calling function.

If function’s return type is void, you can use return only to return program’s control to the calling function, and if there is a return type you will have to return same type of value to the calling function.

Syntax: 
return;
Or
return (value)
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad