InterviewSolution
Saved Bookmarks
| 1. |
Which function should be used to exit from the program that is provided by System class?(a) exit(int);(b) gc();(c) terminate();(d) halt(); |
|
Answer» The correct answer is (a) exit(int); To explain: The exit function should be used to terminate the program. The function is passed with an argument. The argument indicated the type of error occurred. |
|