Unix

1:

 Choose the correct remarks

A.

exit and return can be used interchangeably

B.

Use of return terminates the program

C.

Use of exit terminates the program

D.

exit retuns a value to the system

 

Answer : D

Explanation :

return statement when executed transfers control back to the calling environment. So, if a subroutine executes a return statement control comes back to the main routine. exit always terminates the program, which means within the main routine, exit and return can be used interchangeably.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.