+ 1

For What purpose is the return feature used? And if possible, can you tell me if the return feature changes the entire code or j

a dumb question

18th Feb 2018, 12:38 AM
Isaac Reid
2 Answers
+ 12
Terminates the execution of a function and returns control to the calling function (or to the operating system if you transfer control from the main function). Execution resumes in the calling function at the point immediately following the call.
18th Feb 2018, 12:58 AM
Mohammad Dakdouk
Mohammad Dakdouk - avatar
+ 4
as I learnt the Assembly which C is converted to That is return meant to return back to where called function and then jump to next statement from the called function(abs It's instruction but that might take confuse nvm) You might ask like "How about void? It's doesn't require return statement at all! HaHaHaHa" Truth is last compiled program added it automatically
18th Feb 2018, 12:50 AM
Yanothai Chaitawat
Yanothai Chaitawat - avatar