Ask Question

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. 8 September, 13:24
    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 & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers