Ask Question
26 September, 19:39

Which of the following statements Terminates the program andstops all threads?

a. Return (0);

b. Exit;

c. System. exit (1);

d. System. exit (0);

+1
Answers (1)
  1. 26 September, 21:39
    0
    (c) system. exist (1);

    Explanation:

    system. exist (1); is used for the termination of the program here both option c and d should be correct but in option d there is exit (0) and zero indicates return means program will return but besides zero if there is any non zero number then program will not return and in option c there is a non zero number which means program will not return so option c system. exist (1); will be the correct option for the termination of program
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Which of the following statements Terminates the program andstops all threads? a. Return (0); b. Exit; c. System. exit (1); d. System. exit ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers