1 votes 1 votes What happens to the code which is present after a return..?? Compilation error, or it is ignored or something else saif asked Nov 28, 2018 saif 219 views answer comment Share Follow See all 2 Comments See all 2 2 Comments reply Piyush mishra commented Nov 28, 2018 reply Follow Share It is ignored 1 votes 1 votes anjali007 commented Nov 28, 2018 reply Follow Share The return statement terminates a function and transfer program control to its caller function. Optionally it may return a value to the caller. It can be used anywhere inside a function but once it is executed then the control won't come back to the function... So the code after return is ignored as it is not reachable only... 1 votes 1 votes Please log in or register to add a comment.